sarvekshayr opened a new pull request, #9047:
URL: https://github.com/apache/ozone/pull/9047

   ## What changes were proposed in this pull request?
   `stopBalancer` should be idempotent - meaning that if the balancer is 
already in a STOPPED state, invoking the stop command again should simply 
return successfully with exit code 0 and perform no action.
   
   Currently, it instead throws the following error:
   ```
   Caused by: 
org.apache.hadoop.hdds.scm.container.balancer.IllegalContainerBalancerStateException:
 Expect ContainerBalancer as running state, but running state is actually 
STOPPED
   ```
   This behavior is fixed so that repeated stop calls are handled gracefully.
   
   ## What is the link to the Apache JIRA
   [HDDS-13694](https://issues.apache.org/jira/browse/HDDS-13694)
   
   ## How was this patch tested?
   Tested in `TestContainerBalancer#testStartBalancerStop`. 
   CI: https://github.com/sarvekshayr/ozone/actions/runs/17828304300
   


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