YARN-5462. TestNodeStatusUpdater.testNodeStatusUpdaterRetryAndNMShutdown fails intermittently. Contributed by Eric Badger
(cherry picked from commit db646540f094077941b56ed681a4f3e5853f5b7f)
This commit is contained in:
parent
9d62caa440
commit
1ea03411c2
@ -561,6 +561,8 @@ protected NodeStatusUpdater createNodeStatusUpdater(Context context,
|
||||
|
||||
@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;
|
||||
@ -1755,6 +1757,9 @@ public void testNodeStatusUpdaterRetryAndNMShutdown()
|
||||
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) {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user