JacksonYao287 opened a new pull request #2618: URL: https://github.com/apache/ozone/pull/2618
## What changes were proposed in this pull request? for now, when a balance iteration ended, we have to wait `balancingInterval`(default 1 hour , too long) before start the next iteration. since we already have the following code for waiting for each move option, the only role of the waiting before starting a new iteration is to see whether the balance thread has been interrupt. ``` ReplicationManager.MoveResult result = future.get( config.getMoveTimeout().toMillis(), TimeUnit.MILLISECONDS); ``` we can use isInterrupted to see whether it has been Interrupted, and thus we can start the next iteration as soon as possible this PR avoid balance thread for being interrupted by itself [HDDS-5671](https://github.com/apache/ozone/pull/2578) ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-5712 ## How was this patch tested? no need -- 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]
