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/11/04 18:16:34 UTC

[GitHub] [helix] jiajunwang commented on a change in pull request #528: Suggested fixes by iCR, OpenRefactory, Inc.

jiajunwang commented on a change in pull request #528: Suggested fixes by iCR, OpenRefactory, Inc.
URL: https://github.com/apache/helix/pull/528#discussion_r342195606
 
 

 ##########
 File path: helix-core/src/test/java/org/apache/helix/integration/rebalancer/TestFullAutoNodeTagging.java
 ##########
 @@ -459,6 +459,9 @@ private boolean withinAverage(Map<String, Integer> countMap, boolean isEmptyAllo
         upperBound = 2;
       }
       int average = computeAverage(countMap);
+      // OR Warning: Handle Error Code
 
 Review comment:
   I don't think the average would be -1 here. Since countMap size has been checked above.
   Anyway, in this case, we should return false. Could you please modify it to:
   if (average == -1) {
     return false;
   }

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