From e2e8f771183df798e926abc97116316a05b19c9a Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Thu, 30 Apr 2015 11:03:13 -0700 Subject: [PATCH] YARN-3564. Fix TestContainerAllocation.testAMContainerAllocationWhenDNSUnavailable fails randomly. (Jian He via wangda) --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../scheduler/capacity/TestContainerAllocation.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index f583e6ab1a..cf3d910942 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -274,6 +274,9 @@ Release 2.8.0 - UNRELEASED YARN-3533. Test: Fix launchAM in MockRM to wait for attempt to be scheduled. (Anubhav Dhoot via jianhe) + YARN-3564. Fix TestContainerAllocation.testAMContainerAllocationWhenDNSUnavailable + fails randomly. (Jian He via wangda) + Release 2.7.1 - UNRELEASED 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/scheduler/capacity/TestContainerAllocation.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestContainerAllocation.java index 6aceda5c4d..0ea993fdaf 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestContainerAllocation.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestContainerAllocation.java @@ -325,7 +325,6 @@ protected RMSecretManagerService createRMSecretManagerService() { } SecurityUtilTestHelper.setTokenServiceUseIp(false); - rm1.waitForState(attempt.getAppAttemptId(), RMAppAttemptState.ALLOCATED); MockRM.launchAndRegisterAM(app1, rm1, nm1); } }