YARN-9491. TestApplicationMasterServiceFair#ApplicationMasterServiceTestBase.testUpdateTrackingUrl fails intermittent. Contributed by Prabhu Joseph.

This commit is contained in:
Giovanni Matteo Fumarola 2019-04-23 15:27:04 -07:00
parent c504eee0c2
commit 4a0ba24959
1 changed files with 4 additions and 0 deletions

View File

@ -464,6 +464,10 @@ public abstract class ApplicationMasterServiceTestBase {
allocateRequest.setTrackingUrl(newTrackingUrl);
am1.allocate(allocateRequest);
// wait until RMAppAttemptEventType.STATUS_UPDATE is handled
rm.drainEvents();
Assert.assertEquals(newTrackingUrl, rm.getRMContext().getRMApps().get(
app1.getApplicationId()).getOriginalTrackingUrl());