HDFS-16672. Fix lease interval comparison in BlockReportLeaseManager (#4598). Contributed by dzcxzl.
Reviewed-by: He Xiaoqiao <hexiaoqiao@apache.org> Signed-off-by: Ayush Saxena <ayushsaxena@apache.org
This commit is contained in:
parent
b6b9bd67bb
commit
5af0845076
@ -267,7 +267,7 @@ public synchronized long requestLease(DatanodeDescriptor dn) {
|
||||
|
||||
private synchronized boolean pruneIfExpired(long monotonicNowMs,
|
||||
NodeData node) {
|
||||
if (monotonicNowMs < node.leaseTimeMs + leaseExpiryMs) {
|
||||
if (monotonicNowMs - node.leaseTimeMs < leaseExpiryMs) {
|
||||
return false;
|
||||
}
|
||||
LOG.info("Removing expired block report lease 0x{} for DN {}.",
|
||||
|
Loading…
Reference in New Issue
Block a user