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: [email protected]
For additional commands, e-mail: [email protected]