YARN-6208. Improve the log when FinishAppEvent sent to the NodeManager which didn't run the application

(Contributed by Akira Ajisaka via Daniel Templeton)

(cherry picked from commit 73ecb19312879d54e1cbe80199fe950d81c81104)
This commit is contained in:
Daniel Templeton 2017-06-02 08:50:19 -07:00
parent 8e119f1e90
commit 0bcbf2a09b

View File

@ -1372,8 +1372,10 @@ public void handle(ContainerManagerEvent event) {
for (ApplicationId appID : appsFinishedEvent.getAppsToCleanup()) { for (ApplicationId appID : appsFinishedEvent.getAppsToCleanup()) {
Application app = this.context.getApplications().get(appID); Application app = this.context.getApplications().get(appID);
if (app == null) { if (app == null) {
LOG.warn("couldn't find application " + appID + " while processing" LOG.info("couldn't find application " + appID + " while processing"
+ " FINISH_APPS event"); + " FINISH_APPS event. The ResourceManager allocated resources"
+ " for this application to the NodeManager but no active"
+ " containers were found to process.");
continue; continue;
} }