HDFS-9911. TestDataNodeLifeline Fails intermittently. Contributed by Yiqun Lin
(cherry picked from commit a95639068c
)
This commit is contained in:
parent
4703f5d20b
commit
d20dc8691e
|
@ -1083,7 +1083,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();
|
||||||
|
@ -1111,6 +1111,7 @@ class BPServiceActor implements Runnable {
|
||||||
this.lifelineIntervalMs = lifelineIntervalMs;
|
this.lifelineIntervalMs = lifelineIntervalMs;
|
||||||
this.blockReportIntervalMs = blockReportIntervalMs;
|
this.blockReportIntervalMs = blockReportIntervalMs;
|
||||||
this.slowPeersReportIntervalMs = slowPeersReportIntervalMs;
|
this.slowPeersReportIntervalMs = slowPeersReportIntervalMs;
|
||||||
|
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