luoyuan3471 opened a new pull request, #8917:
URL: https://github.com/apache/hadoop/pull/8917

   ## 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.
   
   ## 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.
   
   ## 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. Community CI has not yet completed.
   
   ## Related Jira
   - [YARN-12057](https://issues.apache.org/jira/browse/YARN-12057)
   
   Contains content generated by Codex.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to