Tejaskriya opened a new pull request, #6179: URL: https://github.com/apache/ozone/pull/6179
## What changes were proposed in this pull request? Container balancer tries to interrupt current balancing thread upon being stopped. This may fail when the interrupt is before the thread even starts sleeping. As a result, the balancer stop is delayed by the interval for which the thread goes to sleep next, which may at most 3 times the configured node report interval (3*1 mins by default). In this PR, the stop logic is changed to retry the interrupt every 5ms until the stop is successful or the thread dies. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-8683 ## How was this patch tested? Existing tests. No regression is caused by the refactoring in this PR. Successful CI run on my fork: https://github.com/Tejaskriya/ozone/actions/runs/7795588307 -- 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]
