From 39c87344e16a08ab69e25345b3bce92aec92db47 Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Wed, 24 Sep 2014 15:23:31 -0700 Subject: [PATCH] YARN-2596. TestWorkPreservingRMRestart fails with FairScheduler. (kasha) --- hadoop-yarn-project/CHANGES.txt | 2 ++ .../resourcemanager/scheduler/SchedulerApplicationAttempt.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 016ac159552..c33bf45618c 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -439,6 +439,8 @@ Release 2.6.0 - UNRELEASED YARN-2161. Fix build on macosx: YARN parts (Binglin Chang via aw) + YARN-2596. TestWorkPreservingRMRestart fails with FairScheduler. (kasha) + Release 2.5.1 - 2014-09-05 INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerApplicationAttempt.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerApplicationAttempt.java index 5240789699a..c9b0303df81 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerApplicationAttempt.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerApplicationAttempt.java @@ -88,7 +88,7 @@ public class SchedulerApplicationAttempt { protected final Resource currentReservation = Resource.newInstance(0, 0); private Resource resourceLimit = Resource.newInstance(0, 0); protected Resource currentConsumption = Resource.newInstance(0, 0); - private Resource amResource; + private Resource amResource = Resources.none(); private boolean unmanagedAM = true; private boolean amRunning = false;