[
https://issues.apache.org/jira/browse/YARN-12068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shilun Fan resolved YARN-12068.
-------------------------------
Fix Version/s: 3.5.1
3.6.0
Hadoop Flags: Reviewed
Resolution: Fixed
> Fix node label replacement metrics in FederationRMAdminInterceptor
> ------------------------------------------------------------------
>
> Key: YARN-12068
> URL: https://issues.apache.org/jira/browse/YARN-12068
> Project: Hadoop YARN
> Issue Type: Bug
> Components: router
> Reporter: Yuan Luo
> Assignee: Yuan Luo
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.5.1, 3.6.0
>
>
> h2. Problem
> * {{FederationRMAdminInterceptor.replaceLabelsOnNode()}} records successful
> requests using {{succeededRemoveFromClusterNodeLabelsRetrieved()}}.
> * Consequently, node label replacement requests update the success count and
> latency metrics for removing cluster node labels instead of their own metrics.
> h2. Solution
> * Use {{succeededReplaceLabelsOnNodeRetrieved()}} for successful node label
> replacement requests.
> * Extend the existing test to verify that the replacement success count
> increases by one and the removal success count remains unchanged.
> h2. Validation
> * Local validation with JDK 17.0.8 on macOS.
> * With the original implementation, the added assertion fails: expected
> {{1}}, but was {{0}}.
> * {{TestFederationRMAdminInterceptor}}: 36 tests.
> * {{TestRouterMetrics}}: 135 tests.
> * Total: 171 tests, 0 failures, 0 errors, 0 skipped. Fresh Surefire XML
> reports verified.
> * {{git diff --check}} passed.
> h2. Related PR
> * [PR #9018|https://github.com/apache/hadoop/pull/9018]
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]