From 21066255da35587664442f2dcef3e1537c5b5b13 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Eagles Date: Tue, 5 Mar 2013 23:12:17 +0000 Subject: [PATCH] YARN-227. Application expiration difficult to debug for end-users (Jason Lowe via jeagles) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1453080 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-yarn-project/CHANGES.txt | 3 ++ .../rmapp/attempt/RMAppAttemptImpl.java | 37 +++++++++++++++---- .../attempt/TestRMAppAttemptTransitions.java | 34 +++++++++++++++++ 3 files changed, 67 insertions(+), 7 deletions(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 669eebe557..4d636db172 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -341,6 +341,9 @@ Release 0.23.7 - UNRELEASED YARN-269. Resource Manager not logging the health_check_script result when taking it out (Jason Lowe via kihwal) + YARN-227. Application expiration difficult to debug for end-users + (Jason Lowe via jeagles) + OPTIMIZATIONS YARN-357. App submission should not be synchronized (daryn) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/attempt/RMAppAttemptImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/attempt/RMAppAttemptImpl.java index c8bd877efb..bb3e733849 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/attempt/RMAppAttemptImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/attempt/RMAppAttemptImpl.java @@ -147,6 +147,9 @@ public class RMAppAttemptImpl implements RMAppAttempt, Recoverable { private Configuration conf; + private static final ExpiredTransition EXPIRED_TRANSITION = + new ExpiredTransition(); + private static final StateMachineFactory