You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@helix.apache.org by GitBox <gi...@apache.org> on 2019/07/23 05:38:56 UTC

[GitHub] [helix] dasahcc commented on a change in pull request #355: Changing IllegalStateException to Helix Exception for CRUSH based rebalance strategy algorithm.

dasahcc commented on a change in pull request #355: Changing IllegalStateException to Helix Exception for CRUSH based rebalance strategy algorithm.
URL: https://github.com/apache/helix/pull/355#discussion_r306135786
 
 

 ##########
 File path: helix-core/src/main/java/org/apache/helix/controller/rebalancer/strategy/CrushRebalanceStrategy.java
 ##########
 @@ -89,7 +89,15 @@ public ZNRecord computePartitionAssignment(final List<String> allNodes,
       long data = partitionName.hashCode();
 
       // apply the placement rules
-      List<Node> selected = select(topNode, data, _replicas, eventId);
+      List<Node> selected;
+      try {
+        selected = select(topNode, data, _replicas, eventId);
+      } catch (IllegalStateException e) {
+        String errorMessage = String
 
 Review comment:
   Did you use helix format template?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services