Ethanlm commented on a change in pull request #3203: [STORM-3574] Rebalance 
accepts config change affecting system component.
URL: https://github.com/apache/storm/pull/3203#discussion_r378403905
 
 

 ##########
 File path: 
storm-server/src/main/java/org/apache/storm/daemon/nimbus/Nimbus.java
 ##########
 @@ -3346,6 +3346,12 @@ public void rebalance(String topoName, RebalanceOptions 
options)
             if (subject != null) {
                 
options.set_principal(subject.getPrincipals().iterator().next().getName());
             }
+            String topoId = toTopoId(topoName);
+            StormTopology stormTopology = tryReadTopology(topoId, topoCache);
+            StormBase base = new StormBase();
+            base.set_name(topoName);
+            idToExecutors.getAndUpdate(new Assoc<>(topoId,
+                    new HashSet<>(computeExecutors(topoId, base, topoConf, 
stormTopology))));
 
 Review comment:
   When rebalance happens, 
   the code here  
https://github.com/apache/storm/blob/master/storm-server/src/main/java/org/apache/storm/daemon/nimbus/Nimbus.java#L1749
 will remove the entry and let it recompute. 
   So I think we don't this?

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

Reply via email to