Gargi-jais11 opened a new pull request, #10818: URL: https://github.com/apache/ozone/pull/10818
## What changes were proposed in this pull request? Fixes a bug where DiskBalancer could keep running on a datanode that is being decommissioned or put into maintenance. When the datanode state changed, DiskBalancer correctly switched to PAUSED in memory. If saving that state to diskBalancer.info failed, the code switched back to RUNNING. That means container moves could continue on a node that should have stopped background work. **Fix applied :** On persist failure in `nodeStateUpdated()`: 1. Pausing (RUNNING → PAUSED): keep PAUSED in memory for safety 2. Resuming (PAUSED → RUNNING): revert to PAUSED if the write fails (unchanged, already safe) ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15688 ## How was this patch tested? Added unit test. -- 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]
