i3wangyi commented on a change in pull request #348: Adding the configuration items of the WAGED rebalancer. URL: https://github.com/apache/helix/pull/348#discussion_r307439040
########## File path: helix-core/src/main/java/org/apache/helix/model/ClusterConfig.java ########## @@ -657,6 +678,68 @@ public void enableP2PMessage(boolean enabled) { _record.setBooleanField(HelixConfigProperty.P2P_MESSAGE_ENABLED.name(), enabled); } + /** + * Set the required Instance Capacity Keys. + * @param capacityKeys + */ + public void setInstanceCapacityKeys(List<String> capacityKeys) { + if (capacityKeys == null || capacityKeys.isEmpty()) { Review comment: For those public methods and the throw exception patterns in several methods, I have a concern. Because Helix library gets exposed and these changes will become something cannot be changed in backwards. To be extra safe, do you know who'll be the client calling the public methods? If it's only helix controller itself, there's some confidence level of data being passed in, probably we can avoid some throw statements. ---------------------------------------------------------------- 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