[ 
https://issues.apache.org/jira/browse/HDDS-17995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-17995:
----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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]

Reply via email to