From 51102019f5b384159de7d5828706149051d2c9ba Mon Sep 17 00:00:00 2001 From: Sangjin Lee Date: Mon, 18 Jul 2016 18:39:25 -0700 Subject: [PATCH] YARN-5156. YARN_CONTAINER_FINISHED of YARN_CONTAINERs will always have running state (Vrushali C via sjlee) (cherry picked from commit d0a62d8adf86f7cb2481940d212788cc5f327367) --- .../nodemanager/timelineservice/NMTimelinePublisher.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/timelineservice/NMTimelinePublisher.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/timelineservice/NMTimelinePublisher.java index 3f07a3475d4..2425ca4dabb 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/timelineservice/NMTimelinePublisher.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/timelineservice/NMTimelinePublisher.java @@ -203,8 +203,6 @@ public class NMTimelinePublisher extends CompositeService { containerStatus.getDiagnostics()); eventInfo.put(ContainerMetricsConstants.EXIT_STATUS_EVENT_INFO, containerStatus.getExitStatus()); - eventInfo.put(ContainerMetricsConstants.STATE_EVENT_INFO, containerStatus - .getState().toString()); TimelineEvent tEvent = new TimelineEvent(); tEvent.setId(ContainerMetricsConstants.FINISHED_EVENT_TYPE); @@ -402,4 +400,4 @@ public class NMTimelinePublisher extends CompositeService { private TimelineClient getTimelineClient(ApplicationId appId) { return appToClientMap.get(appId); } -} \ No newline at end of file +}