AngersZhuuuu edited a comment on pull request #31437:
URL: https://github.com/apache/spark/pull/31437#issuecomment-823763714


   RM clean preempted container's  info, then code in `ClientRMService` throw 
`ApplicationAttemptNotFoundException`
   
   ```
       RMAppAttempt appAttempt = application.getAppAttempts().get(attemptId);
       if (appAttempt == null) {
         throw new ApplicationAttemptNotFoundException(
             "ApplicationAttempt with id '" + attemptId + "' doesn't exist in 
RM.");
       }
   ```
   
   `org.apache.spark.deploy.yarn.Client` will receive this exception。
   
   In yarn-client mode, `Client` run in client driver side, when it receive 
`ApplicationAttemptNotFoundException`, only means  AM's container lose. In this 
situation, retry and restart a AM attempt is ok.
   In cluster mode, `Client` will be wrapper in `YarnClusterApplication` and 
start this in user client side.
   
   
   


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

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