[ 
https://issues.apache.org/jira/browse/YARN-12039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yuan Luo resolved YARN-12039.
-----------------------------
    Resolution: Fixed

> Fix container report lookup for containers retained across application 
> attempts
> -------------------------------------------------------------------------------
>
>                 Key: YARN-12039
>                 URL: https://issues.apache.org/jira/browse/YARN-12039
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>            Reporter: Yuan Luo
>            Assignee: Yuan Luo
>            Priority: Major
>              Labels: pull-request-available
>
> h2. Problem
> * With an attempt-failure validity interval configured, old attempt records 
> may be pruned from the state store, while the running RM's {{RMApp}} still 
> retains the attempts. After an RM restart or failover with work-preserving 
> recovery, the scheduler may recover a retained container whose original 
> attempt is absent from {{RMApp}}. {{getContainerReport}} incorrectly rejects 
> the query.
> h2. Solution
> * Skip the attempt-existence check only when 
> {{keepContainersAcrossApplicationAttempts}} is enabled. Application ACL 
> checks and scheduler-side container validation remain unchanged.
> * For these applications, a missing attempt and container now produce 
> {{ContainerNotFoundException}} instead of 
> {{ApplicationAttemptNotFoundException}}.
> * {{getContainers(oldAttemptId)}} is intentionally outside this fix's scope.
> h2. Validation
> * Local JDK 17: {{TestClientRMService}} — 45 tests; three targeted 
> {{TestAMRestart}} methods across Capacity and Fair schedulers — 6 tests. 
> Total: 51 tests, 0 failures, 0 errors, 0 skipped.
> * Checkstyle: 29 pre-existing violations; none on added lines. {{git diff 
> --check}} passed.
> h2. Related PR
> * [PR #8854|https://github.com/apache/hadoop/pull/8854]



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to