You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/22 12:37:42 UTC

[GitHub] [spark] dydeve opened a new pull request #24676: [SPARK-27804] LiveListenerBus may create multiple AsyncEventQueues with same name in concurrent scene

dydeve opened a new pull request #24676: [SPARK-27804] LiveListenerBus may create multiple AsyncEventQueues with same name in concurrent scene
URL: https://github.com/apache/spark/pull/24676
 
 
   ## What changes were proposed in this pull request?
   
   LiveListenerBus may create multiple AsyncEventQueues with the same name when run in multi-thread scene and those created AsyncEventQueues will be added to queues finally.
   
   In this patch, I change the `queues: CopyOnWriteArrayList` to `map: ConcurrentHashMap` which promise that only one of the AsyncEventQueues created with same name will be added to  map.
   
   ## How was this patch tested?
   tested in SparkListenerSuite  BlacklistTrackerSuite BlockManagerSuite EventLoggingListenerSuite
    ExecutorAllocationManagerSuite  OutputCommitCoordinatorSuite TaskSetBlacklistSuite
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org