zhengchenyu opened a new pull request, #6068:
URL: https://github.com/apache/hadoop/pull/6068
### Description of PR
When AMRMProxy is enable, the application may allocate container among multi
sub cluster. The application in secondary sub cluster will be labeled as
unmananged application. When we run 'yarn app -kill {appid}', the unmananged
application will not be killed in secondary sub cluster.
The unmanaged application will be removed util app attempt is expired after
15 minute.
### How was this patch tested?
unit test and test in real cluster.
### For code changes:
1. Fix createForceFinishApplicationThread. forceKillApplication will called
in asynchronous thread. Some variable maybe removed before call
forceKillApplication. And threadpool may be shutdown. Here transmit the copy to
the thread, and do not use threadpool.
2. When call forceKillApplication, before we use non-security user, here
changed to use proxy user.
3. Fix shutdown. When the resource of application is clean up, it means the
application is final state, maybe succeeded, failed or killed. Here we should
forceKillApplication for uam.
--
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]