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

This commit is contained in:
Szilard Nemeth 2020-01-22 15:49:35 +01:00
parent c36fbcbf17
commit bbdc39c13e
1 changed files with 1 additions and 1 deletions

View File

@ -2184,7 +2184,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());