mcvsubbu commented on a change in pull request #5864:
URL: https://github.com/apache/incubator-pinot/pull/5864#discussion_r470715315



##########
File path: 
pinot-server/src/main/java/org/apache/pinot/server/starter/helix/HelixServerStarter.java
##########
@@ -363,6 +363,7 @@ public void start()
 
     LOGGER.info("Initializing server instance and registering state model 
factory");
     Utils.logVersions();
+    ControllerLeaderLocator.create(_helixManager);

Review comment:
       ControllerLeaderLocator uses helixManager to get the controller resource 
status, so you need to have the helix manager connected before any leader 
locator functionality is invoked. So your use case will not work if the same 
race condition happens again.




----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to