Jackie-Jiang commented on a change in pull request #4047: Create 
leadControllerResource in helix cluster
URL: https://github.com/apache/incubator-pinot/pull/4047#discussion_r291295740
 
 

 ##########
 File path: 
pinot-controller/src/test/java/org/apache/pinot/controller/helix/PinotControllerModeTest.java
 ##########
 @@ -57,25 +61,42 @@ public void testHelixOnlyController()
   }
 
   @Test
-  public void testDualModeController()
-      throws Exception {
+  public void testDualModeController() throws Exception {
     config.setControllerMode(ControllerConf.ControllerMode.DUAL);
     
config.setControllerPort(Integer.toString(Integer.parseInt(config.getControllerPort())
 + controllerPortOffset++));
 
+    // Helix cluster will be set up when starting the first controller.
     startController(config);
     TestUtils.waitForCondition(aVoid -> _helixManager.isConnected(), 
TIMEOUT_IN_MS,
         "Failed to start " + config.getControllerMode() + " controller in " + 
TIMEOUT_IN_MS + "ms.");
     Assert.assertEquals(_controllerStarter.getControllerMode(), 
ControllerConf.ControllerMode.DUAL);
 
+    // Enable the lead controller resource.
 
 Review comment:
   Do we need to explicitly enable the resource?

----------------------------------------------------------------
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


With regards,
Apache Git Services

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

Reply via email to