nwangtw commented on a change in pull request #3152: Fix RoundRobinPacking 
repack with no specified numContainers
URL: https://github.com/apache/incubator-heron/pull/3152#discussion_r247269495
 
 

 ##########
 File path: 
heron/packing/src/java/org/apache/heron/packing/roundrobin/RoundRobinPacking.java
 ##########
 @@ -402,11 +410,10 @@ public PackingPlan repack(PackingPlan 
currentPackingPlan, Map<String, Integer> c
     int initialNumInstance = TopologyUtils.getTotalInstance(topology);
     double initialNumInstancePerContainer = (double) initialNumInstance / 
initialNumContainer;
 
-    Map<String, Integer> currentComponentParallelism = 
currentPackingPlan.getComponentCounts();
     Map<String, Integer> newComponentParallelism =
         getNewComponentParallelism(currentPackingPlan, componentChanges);
 
-    int newNumInstance = 
TopologyUtils.getTotalInstance(currentComponentParallelism);
+    int newNumInstance = 
TopologyUtils.getTotalInstance(newComponentParallelism);
 
 Review comment:
   KK.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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