HDFS-9911. TestDataNodeLifeline Fails intermittently. Contributed by Yiqun Lin
This commit is contained in:
parent
2273a74c1f
commit
a95639068c
|
@ -1068,7 +1068,7 @@ class BPServiceActor implements Runnable {
|
||||||
volatile long nextHeartbeatTime = monotonicNow();
|
volatile long nextHeartbeatTime = monotonicNow();
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
volatile long nextLifelineTime = monotonicNow();
|
volatile long nextLifelineTime;
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
volatile long lastBlockReportTime = monotonicNow();
|
volatile long lastBlockReportTime = monotonicNow();
|
||||||
|
@ -1091,6 +1091,7 @@ class BPServiceActor implements Runnable {
|
||||||
this.heartbeatIntervalMs = heartbeatIntervalMs;
|
this.heartbeatIntervalMs = heartbeatIntervalMs;
|
||||||
this.lifelineIntervalMs = lifelineIntervalMs;
|
this.lifelineIntervalMs = lifelineIntervalMs;
|
||||||
this.blockReportIntervalMs = blockReportIntervalMs;
|
this.blockReportIntervalMs = blockReportIntervalMs;
|
||||||
|
scheduleNextLifeline(nextHeartbeatTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is useful to make sure NN gets Heartbeat before Blockreport
|
// This is useful to make sure NN gets Heartbeat before Blockreport
|
||||||
|
|
Loading…
Reference in New Issue