YARN-5053. More informative diagnostics when applications killed by a user. Contributed by Eric Badger

This commit is contained in:
Jason Lowe 2016-05-12 20:28:36 +00:00
parent 27c4e90efc
commit 013000fbc2

View File

@ -751,9 +751,14 @@ public KillApplicationResponse forceKillApplication(
return KillApplicationResponse.newInstance(true);
}
String message = "Kill application " + applicationId +
" received from " + callerUGI;
if(null != Server.getRemoteAddress()) {
message += " at " + Server.getRemoteAddress();
}
this.rmContext.getDispatcher().getEventHandler().handle(
new RMAppEvent(applicationId, RMAppEventType.KILL,
"Application killed by user."));
message));
// For UnmanagedAMs, return true so they don't retry
return KillApplicationResponse.newInstance(