jiajunwang commented on a change in pull request #690: Reset the WAGED rebalancer once the controller newly acquires leadership. URL: https://github.com/apache/helix/pull/690#discussion_r370336341
########## File path: helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java ########## @@ -187,6 +187,11 @@ private HelixManager _helixManager; + // Since the WAGED rebalancer needs to be lazily constructed, the GenericHelixController will not + // be constructed with a WAGED rebalancer. This wrapper is to avoid the complexity of handling a + // nullable value in the GenericHelixController logic. + private final WagedRebalancerRef _wagedRebalancerRef = new WagedRebalancerRef(); Review comment: I've tried to make the class more generic. Now it is an abstract class. But the configuration part seems to be overdesign for now. Let's consider that part once we have multiple ones. ---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
