You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2019/08/30 05:57:26 UTC

[GitHub] [helix] narendly commented on a change in pull request #440: Record the replica state in the AssignableNode in addition to the partition name

narendly commented on a change in pull request #440: Record the replica state in the AssignableNode in addition to the partition name
URL: https://github.com/apache/helix/pull/440#discussion_r319363215
 
 

 ##########
 File path: helix-core/src/main/java/org/apache/helix/controller/rebalancer/waged/model/AssignableNode.java
 ##########
 @@ -51,10 +51,9 @@
   private Map<String, Integer> _maxCapacity;
   private int _maxPartition; // maximum number of the partitions that can be assigned to the node.
 
-  // proposed assignment tracking
-  // <resource name, partition name set>
-  private Map<String, Set<String>> _currentAssignments;
-  // <resource name, top state partition name>
+  // A map of <resource name, <partition name, state>> to track all the proposed partition assignment with state.
+  private Map<String, Map<String, String>> _currentAssignments;
+  // An index map of <resource name, top state partition name> for tracking the top state partitions.
 
 Review comment:
   1. What do you mean by an "index map"?
   2. When you say <resource name, top state partition name>, what is the top state partition name? Each resource maps to a Set of Strings, and these strings are names of nodes that have top state partitions? Could you clarify?

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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org