YARN-4393. Fix intermittent test failure for TestResourceLocalizationService#testFailedDirsResourceRelease (Varun Saxana via rohithsharmaks)

(cherry picked from commit 791c1639ae)
This commit is contained in:
rohithsharmaks 2016-01-07 09:38:47 +05:30
parent 71006d5c22
commit 4865642e7c
2 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,9 @@ Release 2.9.0 - UNRELEASED
YARN-4535. Fix checkstyle error in CapacityScheduler.java
(Naganarasimha G R via rohithsharmaks)
YARN-4393. Fix intermittent test failure for TestResourceLocalizationService
#testFailedDirsResourceRelease (Varun Saxana via rohithsharmaks)
Release 2.8.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

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