From 845daee4632517730fbbeec08adf0e87801ceda8 Mon Sep 17 00:00:00 2001 From: Varun Saxena Date: Sat, 9 Jul 2016 01:54:22 +0530 Subject: [PATCH] YARN-5318. Fix intermittent test failure of TestRMAdminService#testRefreshNodesResourceWithFileSystemBasedConfigurationProvider. (Jun Gong via Varun Saxena). --- .../hadoop/yarn/server/resourcemanager/TestRMAdminService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java index 9eaf43185cd..48ed7df4235 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAdminService.java @@ -232,6 +232,7 @@ public class TestRMAdminService { rm.adminService.refreshNodesResources( RefreshNodesResourcesRequest.newInstance()); + rm.drainEvents(); RMNode niAfter = rm.getRMContext().getRMNodes().get(nid); Resource resourceAfter = niAfter.getTotalCapability();