浏览代码

YARN-8473. Containers being launched as app tears down can leave containers in NEW state(addendum). Contributed by Jason Lowe.

Rohith Sharma K S 7 年之前
父节点
当前提交
cd0dc2eaec

+ 2 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/application/ApplicationImpl.java

@@ -330,8 +330,8 @@ public class ApplicationImpl implements Application {
         // these get queued up and sent out in AppInitDoneTransition
         break;
       default:
-        LOG.warn("Killing {} because {} is in state {}",
-            container.getContainerId(), app, appState);
+        LOG.warn("Killing " + container.getContainerId() + " because " + app
+            + " is in state " + appState);
         app.dispatcher.getEventHandler().handle(new ContainerKillEvent(
             container.getContainerId(),
             ContainerExitStatus.KILLED_AFTER_APP_COMPLETION,