jackjlli commented on a change in pull request #4047: Create leadControllerResource in helix cluster URL: https://github.com/apache/incubator-pinot/pull/4047#discussion_r291300402
########## 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: By default it's disabled when creating a Helix cluster. In tests we'd like to explicitly enable it. That's why we need this line in the tests. ---------------------------------------------------------------- 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