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

   ### Description of PR
   
   Fixes [YARN-12049](https://issues.apache.org/jira/browse/YARN-12049).
   
   `FederationRMAdminInterceptor` creates a per-user executor but never shuts 
it down. `RouterRMAdminService` also discards cached pipelines on stop without 
closing them. Shut down the executor, close cached pipelines explicitly on 
service stop, and clean up partially initialized pipelines when initialization 
fails.
   
   Pipeline closure is idempotent and a shutdown exception in one cached 
pipeline does not prevent the others from closing. The existing finalization 
fallback remains for evicted pipelines; this patch does not immediately close 
pipelines on eviction.
   
   ### How was this patch tested?
   
   On JDK 17 with Maven 3.9.15:
   
   ```text
   mvn -o -B -pl 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router 
-Dtest=TestRouterRMAdminService,TestFederationRMAdminInterceptor 
-Dmaven.test.failure.ignore=false test
   ```
   
   All 46 tests passed. Added coverage checks worker termination, shutdown 
before initialization, service stop before start, cached pipeline closure, 
repeated closure and finalization, a shutdown exception, initialization 
failure, and the existing cleanup fallback after eviction.
   
   `git diff --check` passed. Checkstyle was compared with the same unmodified 
trunk baseline: 21 existing violations in each, with no new violations.
   
   ### For code changes:
   
   - [x] The PR title starts with the corresponding JIRA issue id.
   - [ ] Object storage integration tests (not applicable).
   - [ ] Dependency licensing (not applicable; no new dependencies).
   - [ ] LICENSE or NOTICE changes (not applicable).
   
   ### AI Tooling
   
   - [x] Contains content generated by Codex.
   - [x] My use of AI contributions follows the ASF legal policy: 
https://www.apache.org/legal/generative-tooling.html
   


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