You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Jackson Yao (Jira)" <ji...@apache.org> on 2021/09/07 06:45:00 UTC
[jira] [Assigned] (HDDS-5712) no need to wait before start a new
balance iteration
[ https://issues.apache.org/jira/browse/HDDS-5712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jackson Yao reassigned HDDS-5712:
---------------------------------
Assignee: Jackson Yao
> no need to wait before start a new balance iteration
> ----------------------------------------------------
>
> Key: HDDS-5712
> URL: https://issues.apache.org/jira/browse/HDDS-5712
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Jackson Yao
> Assignee: Jackson Yao
> Priority: Major
>
> 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.
> {code:java}
> ReplicationManager.MoveResult result = future.get( config.getMoveTimeout().toMillis(), TimeUnit.MILLISECONDS);{code}
> we can use isInterrupted to see whether it has been Interrupted, and thus we can start the next iteration as soon as possible
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org