YARN-5362. TestRMRestart#testFinishedAppRemovalAfterRMRestart can fail. Contributed by sandflee.

This commit is contained in:
Rohith Sharma K S 2016-07-13 19:12:16 +05:30
parent 77ffe76212
commit d6d41e820a
1 changed files with 1 additions and 0 deletions

View File

@ -1648,6 +1648,7 @@ public class TestRMRestart extends ParameterizedSchedulerTestBase {
RMApp app1 = rm2.submitApp(200); RMApp app1 = rm2.submitApp(200);
MockAM am1 = launchAM(app1, rm2, nm1); MockAM am1 = launchAM(app1, rm2, nm1);
finishApplicationMaster(app1, rm2, nm1, am1); finishApplicationMaster(app1, rm2, nm1, am1);
rm2.drainEvents();
// the first app0 get kicked out from both rmContext and state store // the first app0 get kicked out from both rmContext and state store
Assert.assertNull(rm2.getRMContext().getRMApps() Assert.assertNull(rm2.getRMContext().getRMApps()