YARN-9462. TestResourceTrackerService.testNodeRemovalGracefully fails sporadically. Contributed by Prabhu Joseph

This commit is contained in:
Szilard Nemeth 2020-01-20 09:54:22 +01:00
parent 57aad0f43a
commit 8b3ee2f7e9
1 changed files with 1 additions and 1 deletions

View File

@ -2210,7 +2210,7 @@ public class TestResourceTrackerService extends NodeLabelTestBase {
DEFAULT_RM_NODEMANAGER_UNTRACKED_REMOVAL_TIMEOUT_MSEC);
int nodeRemovalInterval =
rmContext.getNodesListManager().getNodeRemovalCheckInterval();
long maxThreadSleeptime = nodeRemovalInterval + nodeRemovalTimeout;
long maxThreadSleeptime = nodeRemovalInterval + nodeRemovalTimeout + 100;
latch.await(maxThreadSleeptime, TimeUnit.MILLISECONDS);
rmNode = rmContext.getInactiveRMNodes().get(nm2.getNodeId());