You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Navin Kumar (Jira)" <ji...@apache.org> on 2026/09/06 03:50:00 UTC
[jira] [Created] (HDDS-16387) ContainerBalancer status --verbose throws IllegalStateException after a rejected start
Navin Kumar created HDDS-16387:
----------------------------------
Summary: ContainerBalancer status --verbose throws IllegalStateException after a rejected start
Key: HDDS-16387
URL: https://issues.apache.org/jira/browse/HDDS-16387
Project: Apache Ozone
Issue Type: Bug
Components: SCM
Reporter: Navin Kumar
Assignee: Navin Kumar
ContainerBalancer#start() and ContainerBalancer#startBalancer() assign
{\{startedAt = OffsetDateTime.now()}} at the very top of the method, *before*
state/configuration validation runs. If a start attempt is rejected during
validation, startedAt is still advanced even though no new balancing
run actually begins.
After a previous run has completed (so stoppedAt is set), a subsequent
rejected start pushes startedAt *past* stoppedAt. This yields a negative
"balancing duration".
ContainerBalancer#start() and ContainerBalancer#startBalancer() assign
{\{startedAt = OffsetDateTime.now()}} at the very top of the method, *before*
state/configuration validation runs. If a start attempt is rejected during
validation (invalid config, SCM in safe mode, non-leader SCM, or balancer
already running), startedAt is still advanced even though no new balancing
run actually begins.
After a previous run has completed (so stoppedAt is set), a subsequent
rejected start pushes startedAt *past* stoppedAt. This yields a negative
"balancing duration".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org