YARN-9540. TestRMAppTransitions fails intermittently. Contributed by Tao Yang.

This commit is contained in:
Abhishek Modi 2019-08-30 17:17:43 +05:30
parent 96f7dc1992
commit c929b383f8

View File

@ -653,6 +653,7 @@ protected RMApp testCreateAppFinished(
RMAppEvent finishedEvent = new RMAppEvent(application.getApplicationId(), RMAppEvent finishedEvent = new RMAppEvent(application.getApplicationId(),
RMAppEventType.ATTEMPT_FINISHED, diagnostics); RMAppEventType.ATTEMPT_FINISHED, diagnostics);
application.handle(finishedEvent); application.handle(finishedEvent);
rmDispatcher.await();
//only run this verification if we created a finishing app //only run this verification if we created a finishing app
if (submissionContext == null) { if (submissionContext == null) {