Yuan Luo created YARN-12068:
-------------------------------

             Summary: 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


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




--
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