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

(cherry picked from commit d6d41e820ac7b3ba73f5e4ea1ee72715dc1ffc9f)
This commit is contained in:
Rohith Sharma K S 2016-07-13 19:12:16 +05:30
parent 22e719b16e
commit 694b4abbc0

View File

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