Gargi-jais11 commented on code in PR #8488:
URL: https://github.com/apache/ozone/pull/8488#discussion_r2101534274


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/DatanodeStateMachine.java:
##########
@@ -133,6 +135,10 @@ public class DatanodeStateMachine implements Closeable {
 
   private final DatanodeQueueMetrics queueMetrics;
   private final ReconfigurationHandler reconfigurationHandler;
+  //global variable to track if diskBalancer was running before pause
+  private Boolean shouldRun = false;

Review Comment:
   pause is used as a new state that Diskbalancer goes after entering 
decommissioning or maintenance state.
   So suppose the diskbalancer is back to IN_SERVICE and it was paused due to 
DN state change than only diskbalncer should start.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to