dasahcc commented on a change in pull request #336: #334 Fix invoke rebalance 
by "touching" IdealState/ResourceConfig
URL: https://github.com/apache/helix/pull/336#discussion_r303745274
 
 

 ##########
 File path: 
helix-core/src/main/java/org/apache/helix/controller/rebalancer/util/RebalanceScheduler.java
 ##########
 @@ -138,7 +140,7 @@ public static void invokeRebalance(HelixDataAccessor 
accessor, String resource)
     PropertyKey key = accessor.keyBuilder().idealStates(resource);
     IdealState is = accessor.getProperty(key);
     if (is != null) {
-      if (!accessor.updateProperty(key, is)) {
+      if (!accessor.updateProperty(key, znRecord -> znRecord, is)) {
 
 Review comment:
   Prefer to leave a comment instead of having the complete class. Then that 
would be meaningless of using Java 8.

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

Reply via email to