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

   
   ### Description of PR
   
   https://issues.apache.org/jira/browse/YARN-11183
   
   Nowadays, ApplicationHomeSubCluster in federation state store can't be 
removed automatically.
   
   The key is when remove ApplicationHomeSubCluster. What's the end of 
ApplicationHomeSubCluster's lifecycle?
   
   We know when called getApplicationReport, we must know 
ApplicationHomeSubCluster. It may be the last possible to get this 
application's home subcluster. So I think we should remove 
ApplicationHomeSubCluster when the application is removed from 
resourcemanager's memory.
   
   ### How was this patch tested?
   
   unit test and test on our cluster.
   
   ### For code changes:
   
   Here I add AsyncDispatcher for handle federation state store. Two key point:
   
   * When application is removed from RM, will delete ApplicationHomeSubCluster 
from federation state store.
   
   * When ResourceManager start, will check all application whether is removed 
from resourcemanager memory.
   
   


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