Devesh Kumar Singh created HDDS-17995:
-----------------------------------------
Summary: Extract ContainerBalancer MoveResult-to-outcome
classification into one place
Key: HDDS-17995
URL: https://issues.apache.org/jira/browse/HDDS-17995
Project: Apache Ozone
Issue Type: Task
Reporter: Devesh Kumar Singh
Assignee: Devesh Kumar Singh
ContainerBalancerMetrics.incrementCurrentIterationContainerMoveMetric
classifies a MoveManager.MoveResult into completed / timeout / failed via a
large inline switch. The per-storage-type balancer metrics (HDDS-17590) need
the same classification, so the mapping would otherwise be duplicated and could
drift. Extract the mapping into a single Outcome enum + Outcome.of(MoveResult)
and repoint ContainerBalancerMetrics to it. Behavior-neutral — the overall
counters record exactly what they do today; no new metrics in this change.
HDDS-17590 then builds the per-storage-type counters on top of the shared
Outcome.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]