HeartSaVioR commented on a change in pull request #2945: STORM-3321: Fix race 
in LocalCluster regarding Nimbus leadership, red…
URL: https://github.com/apache/storm/pull/2945#discussion_r262818392
 
 

 ##########
 File path: storm-server/src/main/java/org/apache/storm/LocalCluster.java
 ##########
 @@ -231,6 +233,10 @@ private LocalCluster(Builder builder) throws Exception {
             } else {
                 this.clusterState = builder.clusterState;
             }
+            if (!Time.isSimulating()) {
+                //Ensure Nimbus assigns topologies as quickly as possible
+                conf.put(DaemonConfig.NIMBUS_MONITOR_FREQ_SECS, 1);
 
 Review comment:
   OK makes sense. Doesn't seem to be a big deal as I think about this again.

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