jiajunwang commented on a change in pull request #941: Fix unexpceted partition
movements in the CrushEd strategy.
URL: https://github.com/apache/helix/pull/941#discussion_r407675377
##########
File path:
helix-core/src/main/java/org/apache/helix/controller/rebalancer/AbstractRebalancer.java
##########
@@ -417,4 +417,25 @@ public int compare(String ins1, String ins2) {
return p1.compareTo(p2);
}
}
+
+ // This is for a backward compatible workaround to fix
+ // https://github.com/apache/helix/issues/940.
+ // TODO: remove the workaround once we are able to apply the simple fix
without majorly
+ // TODO: impacting user's clusters.
+ protected List<String> getStablePartitionList(ResourceControllerDataProvider
clusterData,
Review comment:
If the method is put in a different class, it would be safer to protect from
the OO design perspective. In detail, after we put refreshStablePartitionList
as private into ResourceControllerDataProvider, we don't have a mechanism to
guarantee refreshStablePartitionList() is called and the refresh is done
completely.
It is optional though, especially it is a workaround. If it is a big concern
to you, I can remove it.
----------------------------------------------------------------
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]