YARN-9491. TestApplicationMasterServiceFair#ApplicationMasterServiceTestBase.testUpdateTrackingUrl fails intermittent. Contributed by Prabhu Joseph.
This commit is contained in:
parent
c504eee0c2
commit
4a0ba24959
|
@ -464,6 +464,10 @@ public abstract class ApplicationMasterServiceTestBase {
|
||||||
allocateRequest.setTrackingUrl(newTrackingUrl);
|
allocateRequest.setTrackingUrl(newTrackingUrl);
|
||||||
|
|
||||||
am1.allocate(allocateRequest);
|
am1.allocate(allocateRequest);
|
||||||
|
|
||||||
|
// wait until RMAppAttemptEventType.STATUS_UPDATE is handled
|
||||||
|
rm.drainEvents();
|
||||||
|
|
||||||
Assert.assertEquals(newTrackingUrl, rm.getRMContext().getRMApps().get(
|
Assert.assertEquals(newTrackingUrl, rm.getRMContext().getRMApps().get(
|
||||||
app1.getApplicationId()).getOriginalTrackingUrl());
|
app1.getApplicationId()).getOriginalTrackingUrl());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue