Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix for empty queue
  • Loading branch information
gaborgsomogyi committed Feb 15, 2018
commit bd46d1cb63e7a04e0236f7b1bf70b46fb55f3ea4
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private[streaming] class ReceivedBlockTracker(
s"${allocatedBlocks.streamIdToAllocatedBlocks}")
allocatedBlocks.streamIdToAllocatedBlocks.foreach {
case (streamId, allocatedBlocks) =>
Copy link
Member

@viirya viirya Feb 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can we use another name (maybe allocatedBlocksInStream?) other than allocatedBlocks to avoid confusion?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, fixed.

streamIdToUnallocatedBlockQueues(streamId).dequeueAll(allocatedBlocks.toSet)
getReceivedBlockQueue(streamId).dequeueAll(allocatedBlocks.toSet)
}
timeToAllocatedBlocks.put(batchTime, allocatedBlocks)
lastAllocatedBatchTime = batchTime
Expand Down