You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2026/10/06 02:42:00 UTC
[jira] [Resolved] (YARN-12006) TestRouterWebServicesREST.getAppAttempt fails with IndexOutOfBoundsException before the RM creates the first attempt
[ https://issues.apache.org/jira/browse/YARN-12006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shilun Fan resolved YARN-12006.
-------------------------------
Fix Version/s: 3.5.1
3.6.0
Hadoop Flags: Reviewed
Target Version/s: 3.5.1, 3.6.0
Resolution: Fixed
> TestRouterWebServicesREST.getAppAttempt fails with IndexOutOfBoundsException before the RM creates the first attempt
> --------------------------------------------------------------------------------------------------------------------
>
> Key: YARN-12006
> URL: https://issues.apache.org/jira/browse/YARN-12006
> Project: Hadoop YARN
> Issue Type: Bug
> Components: router, test
> Reporter: Jose Luis López
> Assignee: Jose Luis López
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.5.1, 3.6.0
>
>
> {{TestRouterWebServicesREST}} (and {{TestFederationWebApp}}, which extends it) fails intermittently in {{testGetAppAttemptXML}} and {{testGetContainersXML}} with:
> {noformat}
> java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
> at ...TestRouterWebServicesREST.getAppAttempt(...)
> {noformat}
> {{getAppAttempt}} queries the RM for the application's attempts right after {{submitApplication()}} returns and reads {{getAttempts().get(0)}}. The RM creates the first attempt asynchronously after accepting the submission, so the list can still be empty at that point.
> h3. Proposed fix (test-only)
> * Make {{getAppAttempt}} wait, up to 10s, for the first attempt to appear ({{LambdaTestUtils.eventually}}).
> * Raise the timeout of {{testGetAppAttemptXML}} and {{testGetContainersXML}} from 2s to 30s, since they now wait.
> * Close the Jersey client that {{getAppAttempt}} creates. It currently leaks.
> The Router-vs-RM comparison races in the same class ({{testAppXML}}, {{testAppStateXML}}, {{testAppAttemptXML}}, {{testGetContainersXML}}) are tracked separately in YARN-12004.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org