-
Type:
Sub-task
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.4.0
-
Fix Version/s: 2.6.0
-
Component/s: applicationmaster, mrv2
-
Labels:None
-
Target Version/s:
-
Hadoop Flags:Reviewed
Found this while reviewing YARN-2074. The problem is that after YARN-2074, we don't count AM preemption towards AM failures on RM side, but MapReduce AM itself checks the attempt id against the max-attempt count to determine if this is the last attempt.
public void computeIsLastAMRetry() {
isLastAMRetry = appAttemptID.getAttemptId() >= maxAppAttempts;
}
This causes issues w.r.t deletion of staging directory etc..