Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1195#discussion_r14308000
  
    --- 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 --
    
    Ah, I missed the synchronized in the `store()` method.


---
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.
---

Reply via email to