YARN-5462. TestNodeStatusUpdater.testNodeStatusUpdaterRetryAndNMShutdown fails intermittently. Contributed by Eric Badger

(cherry picked from commit db646540f0)
This commit is contained in:
Jason Lowe 2016-08-03 19:17:25 +00:00
parent aca7eea611
commit c972498b74
1 changed files with 5 additions and 0 deletions

View File

@ -557,6 +557,8 @@ public class TestNodeStatusUpdater {
@Override
protected void serviceStop() throws Exception {
// Make sure that all containers are started before starting shutdown
syncBarrier.await(10000, TimeUnit.MILLISECONDS);
System.out.println("Called stooppppp");
super.serviceStop();
isStopped = true;
@ -1624,6 +1626,9 @@ public class TestNodeStatusUpdater {
new File("start_file.txt"), port);
try {
// Wait until we start stopping
syncBarrier.await(10000, TimeUnit.MILLISECONDS);
// Wait until we finish stopping
syncBarrier.await(10000, TimeUnit.MILLISECONDS);
} catch (Exception e) {
}