RuiLi8080 commented on a change in pull request #3127: [STORM-3507] add 
quarantine area for superviosrs which should have be…
URL: https://github.com/apache/storm/pull/3127#discussion_r337037919
 
 

 ##########
 File path: storm-server/src/main/java/org/apache/storm/scheduler/Cluster.java
 ##########
 @@ -1085,4 +1093,14 @@ public void updateFrom(Cluster other) {
     public double getMinWorkerCpu() {
         return minWorkerCpu;
     }
+
+    public List<String> getQuarantinedSupervisors() {
+        return quarantinedSupervisors;
+    }
+
+    public void setQuarantinedSupervisors(Set<String> quarantinedSupervisors) {
+        this.quarantinedSupervisors.clear();
+        LOG.info("Supervisors: {} were forced to quarantine due to resource 
shortage", quarantinedSupervisors);
 
 Review comment:
   Thanks Govind. Addressed 

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