From 100b41add6632da6ffa928e27a24caa87ad86eb7 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) (cherry picked from commit e2e8f771183df798e926abc97116316a05b19c9a) --- 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 fe8221f390f..c3782555bef 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -226,6 +226,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 6aceda5c4db..0ea993fdaf2 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 @@ public class TestContainerAllocation { } SecurityUtilTestHelper.setTokenServiceUseIp(false); - rm1.waitForState(attempt.getAppAttemptId(), RMAppAttemptState.ALLOCATED); MockRM.launchAndRegisterAM(app1, rm1, nm1); } }