diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index c1078441e31..6271a35557e 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -63,6 +63,9 @@ Release 2.4.1 - UNRELEASED YARN-1898. Made Standby RM links conf, stacks, logLevel, metrics, jmx, logs and static not be redirected to Active RM. (Xuan Gong via zjshen) + YARN-1837. Fixed TestMoveApplication#testMoveRejectedByScheduler failure. + (Hong Zhiguo via jianhe) + Release 2.4.0 - 2014-04-07 INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestMoveApplication.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestMoveApplication.java index 75fd476c33b..b80a6bc560d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestMoveApplication.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestMoveApplication.java @@ -72,6 +72,13 @@ public class TestMoveApplication { Application application = new Application("user1", resourceManager); application.submit(); + // Wait for app to be accepted + RMApp app = resourceManager.rmContext.getRMApps() + .get(application.getApplicationId()); + while (app.getState() != RMAppState.ACCEPTED) { + Thread.sleep(100); + } + ClientRMService clientRMService = resourceManager.getClientRMService(); try { // FIFO scheduler does not support moves