Github user vanzin commented on a diff in the pull request: https://github.com/apache/spark/pull/1195#discussion_r14308113 --- Diff: streaming/src/main/scala/org/apache/spark/streaming/receiver/BlockGenerator.scala --- @@ -58,6 +66,11 @@ private[streaming] class BlockGenerator( @volatile private var currentBuffer = new ArrayBuffer[Any] @volatile private var stopped = false + private var currentBlockId: StreamBlockId = StreamBlockId(receiverId, + clock.currentTime() - blockInterval) + + // Removes might happen from the map while other threads are inserting. --- End diff -- BTW, given your explanation, the comment itself seems a little out of place, since it doesn't really explain much.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---