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

   ### Description of PR
   
   JIRA: https://issues.apache.org/jira/browse/YARN-12006
   
   `TestRouterWebServicesREST` (and `TestFederationWebApp`, which extends it) 
fails intermittently in `testGetAppAttemptXML` and `testGetContainersXML` with 
`IndexOutOfBoundsException` in `getAppAttempt`. The change is test-only.
   
   - `getAppAttempt` read `getAttempts().get(0)` right after the submission 
returned, before the RM had created the first attempt. It now waits up to 10s 
for the attempt and closes the client it creates.
   - `testGetAppAttemptXML` and `testGetContainersXML` get a 30s timeout 
instead of 2s, because they now wait.
   
   Related: YARN-12004 (#8787) fixes the Router-vs-RM comparison races in the 
same class. The two PRs are independent and merge cleanly in either order.
   
   ### How was this patch tested?
   
   Compiles locally. The tests start the RM, NM and Router as child processes, 
which needs a Linux host, so they are left to CI.
   
   ### For code changes:
   
   - [x] Does the title of this PR start with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: N/A
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under ASF 2.0? N/A, no new 
dependencies.
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files? N/A
   
   ### AI Tooling
   
   - [x] The PR includes the phrase "Contains content generated by Claude Code".
   - [x] My use of AI contributions follows the ASF legal policy 
https://www.apache.org/legal/generative-tooling.html
   
   Contains content generated by Claude Code.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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