From c929b383f876b77056864cc26a4a3765a2bfd3d0 Mon Sep 17 00:00:00 2001 From: Abhishek Modi Date: Fri, 30 Aug 2019 17:17:43 +0530 Subject: [PATCH] YARN-9540. TestRMAppTransitions fails intermittently. Contributed by Tao Yang. --- .../yarn/server/resourcemanager/rmapp/TestRMAppTransitions.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/rmapp/TestRMAppTransitions.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/TestRMAppTransitions.java index 122aa30a6b..57bdac42ea 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/TestRMAppTransitions.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/TestRMAppTransitions.java @@ -653,6 +653,7 @@ protected RMApp testCreateAppFinished( RMAppEvent finishedEvent = new RMAppEvent(application.getApplicationId(), RMAppEventType.ATTEMPT_FINISHED, diagnostics); application.handle(finishedEvent); + rmDispatcher.await(); //only run this verification if we created a finishing app if (submissionContext == null) {