ソースを参照

YARN-4393. Fix intermittent test failure for TestResourceLocalizationService#testFailedDirsResourceRelease (Varun Saxana via rohithsharmaks)
(cherry picked from commit 791c1639ae0b351e0bf0b2ecec854dc72ab07935)

Conflicts:

hadoop-yarn-project/CHANGES.txt

Jason Lowe 8 年 前
コミット
7af3395a49

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -39,6 +39,9 @@ Release 2.6.5 - UNRELEASED
     YARN-5197. RM leaks containers if running container disappears from 
     YARN-5197. RM leaks containers if running container disappears from 
     node update. Contributed by Jason Lowe.
     node update. Contributed by Jason Lowe.
 
 
+    YARN-4393. Fix intermittent test failure for TestResourceLocalizationService
+    #testFailedDirsResourceRelease (Varun Saxana via rohithsharmaks)
+
 Release 2.6.4 - 2016-02-11
 Release 2.6.4 - 2016-02-11
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 0
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestResourceLocalizationService.java

@@ -2416,6 +2416,8 @@ public class TestResourceLocalizationService {
           new ApplicationLocalizationEvent(
           new ApplicationLocalizationEvent(
             LocalizationEventType.DESTROY_APPLICATION_RESOURCES, app);
             LocalizationEventType.DESTROY_APPLICATION_RESOURCES, app);
       spyService.handle(destroyApp);
       spyService.handle(destroyApp);
+      // Waits for APPLICATION_RESOURCES_CLEANEDUP event to be handled.
+      dispatcher.await();
       verify(applicationBus).handle(argThat(matchesAppDestroy));
       verify(applicationBus).handle(argThat(matchesAppDestroy));
 
 
       // verify we got the right delete calls
       // verify we got the right delete calls