You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/07/11 01:50:52 UTC

[GitHub] [incubator-pinot] jackjlli commented on a change in pull request #4422: In ClusterChangeMediator, stop enqueue/process changes if already stopped

jackjlli commented on a change in pull request #4422: In ClusterChangeMediator, stop enqueue/process changes if already stopped
URL: https://github.com/apache/incubator-pinot/pull/4422#discussion_r302335684
 
 

 ##########
 File path: pinot-broker/src/main/java/org/apache/pinot/broker/broker/helix/ClusterChangeMediator.java
 ##########
 @@ -145,15 +145,15 @@ private void processClusterChange(ChangeType changeType, List<ClusterChangeHandl
   /**
    * Starts the cluster change mediator.
    */
-  public void start() {
+  public synchronized void start() {
 
 Review comment:
   Do we need synchronized block here? These start and stop methods would only be called in brokerStarter though. Or maybe just adding the sync block on `_stopped` would be enough?

----------------------------------------------------------------
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: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org