chihsuan opened a new pull request, #12189: URL: https://github.com/apache/ozone/pull/12189
## What changes were proposed in this pull request? The balancer acceptance test spends most of its time in fixed sleeps. It sleeps 60s after a datanode enters maintenance and 300s after it is recommissioned. The 300s sleep is there because the balancer only moves closed containers. Containers take about 2.5 minutes to close in this setup. The reason is that `ozone-balancer/docker-config` does not set `ozone.scm.close.container.wait.duration`, so SCM waits the default 150s before it closes them. The `ozone`, `ozonesecure` and `ozonesecure-ha` setups already set it to 5s. This PR sets it to 5s in `ozone-balancer` too, and replaces the 300s sleep with a check that waits until all containers and replicas are closed. It also removes the 60s sleep after maintenance, because the step before it already waits for pipelines to close. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17947 ## How was this patch tested? `ozone-balancer` tests passed in [build-branch](https://github.com/chihsuan/ozone/actions/runs/46119399540) and [50 times in repeat-acceptance](https://github.com/chihsuan/ozone/actions/runs/46121017109). | Run | `test-ratis.sh` | `test-ec.sh` | |-----|------|------| | [master](https://github.com/chihsuan/ozone/actions/runs/46121019755) | 652s | 687s | | [this PR](https://github.com/chihsuan/ozone/actions/runs/46121017109) | 297s | 328s | This saves about 12 minutes per CI run. Generated-by: Claude Code (Claude Opus 5.5) -- 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]
