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

    https://github.com/apache/spark/pull/8204#discussion_r37124378
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/receiver/BlockGenerator.scala
 ---
    @@ -106,6 +106,7 @@ private[streaming] class BlockGenerator(
       private val blockQueueSize = 
conf.getInt("spark.streaming.blockQueueSize", 10)
       private val blocksForPushing = new 
ArrayBlockingQueue[Block](blockQueueSize)
       private val blockPushingThread = new Thread() { override def run() { 
keepPushingBlocks() } }
    +  private val dataAddingLock = new Object
    --- End diff --
    
    Right, sorry, I thought of using it but I realized that it changes the 
locking logic significantly, which I dont want to do.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to