jiajunwang commented on a change in pull request #1066:
URL: https://github.com/apache/helix/pull/1066#discussion_r457585191



##########
File path: 
helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java
##########
@@ -695,12 +695,19 @@ private void handleEvent(ClusterEvent event, 
BaseControllerDataProvider dataProv
     event.addAttribute(AttributeName.STATEFUL_REBALANCER.name(),
         _rebalancerRef.getRebalancer(manager));
 
-    if (!manager.isLeader()) {
-      logger.error("Cluster manager: " + manager.getInstanceName() + " is not 
leader for " + manager
-          .getClusterName() + ". Pipeline will not be invoked");
+    Optional<String> leaderSession = manager.getSessionIdIfLead();

Review comment:
       The reason we want this change is to prevent 2 pipelines running. So if 
the S0 session event is handled in S1, do you think it would be risky that we 
have more confusion and leads to a bad result?




----------------------------------------------------------------
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:
[email protected]



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

Reply via email to