[
https://issues.apache.org/jira/browse/YARN-12057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yuan Luo resolved YARN-12057.
-----------------------------
Resolution: Fixed
> Log the correct Registry application count in the GPG cleaner
> -------------------------------------------------------------
>
> Key: YARN-12057
> URL: https://issues.apache.org/jira/browse/YARN-12057
> Project: Hadoop YARN
> Issue Type: Bug
> Components: federation
> Reporter: Yuan Luo
> Assignee: Yuan Luo
> Priority: Minor
> Labels: pull-request-available
>
> h2. Problem
> * {{DefaultApplicationCleaner.run()}} logs the FederationRegistry application
> count using {{allStateStoreApps.size()}} instead of
> {{allRegistryApps.size()}}.
> * When the two stores contain different numbers of applications, the log
> reports an incorrect Registry count and can mislead cleanup diagnosis.
> h2. Solution
> * Use {{allRegistryApps.size()}} for the FederationRegistry count log.
> * Add a regression test with three StateStore applications and one Registry
> application, checking both counts.
> * Leave cleanup decisions and deletion behavior unchanged.
> h2. Validation
> * Local macOS, JDK 17.0.8, Maven Wrapper 3.9.15; no native profile.
> * The new regression test fails against the original code at the Registry
> count assertion: 1 test, 1 failure, 0 errors, 0 skipped.
> * {{TestDefaultApplicationCleaner}} passes with the fix: 3 tests, 0 failures,
> 0 errors, 0 skipped.
> * Checkstyle for both changed Java files: 0 violations.
> * {{git diff --check}} passes.
> h2. Related PR
> * [PR #8917|https://github.com/apache/hadoop/pull/8917]
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]