Gargi-jais11 commented on code in PR #8488: URL: https://github.com/apache/ozone/pull/8488#discussion_r2149136422
########## hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/diskbalancer/DiskBalancerService.java: ########## @@ -112,6 +113,16 @@ public class DiskBalancerService extends BackgroundService { private DiskBalancerServiceMetrics metrics; private long bytesToMove; + /** + * Tracks whether the DiskBalancerService is paused. + * If true, the service is temporarily stopped but can be resumed later. + * + * In maintenance/decommissioning state of dn, if disk balancer + * is stopped by client, this will be set to false, although it + * was true stating disk balancer is stopped manually by client. + */ + private final AtomicBoolean paused = new AtomicBoolean(false); Review Comment: Yaa I have addressed them in this patch. As I a good understanding of diskbalancer behaviour during DN state change is also much needed over here. -- 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: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org