HDFS-9911. TestDataNodeLifeline Fails intermittently. Contributed by Yiqun Lin

This commit is contained in:
Anu Engineer 2016-12-16 09:46:21 -08:00
parent 2273a74c1f
commit a95639068c

View File

@ -1068,7 +1068,7 @@ static class Scheduler {
volatile long nextHeartbeatTime = monotonicNow();
@VisibleForTesting
volatile long nextLifelineTime = monotonicNow();
volatile long nextLifelineTime;
@VisibleForTesting
volatile long lastBlockReportTime = monotonicNow();
@ -1091,6 +1091,7 @@ static class Scheduler {
this.heartbeatIntervalMs = heartbeatIntervalMs;
this.lifelineIntervalMs = lifelineIntervalMs;
this.blockReportIntervalMs = blockReportIntervalMs;
scheduleNextLifeline(nextHeartbeatTime);
}
// This is useful to make sure NN gets Heartbeat before Blockreport