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