HDFS-15787. Remove unnecessary Lease Renew in FSNamesystem#internalReleaseLease. Contributed by Lisheng Sun.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org> Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
parent
648bbbdad6
commit
03a3a04c06
@ -3786,7 +3786,9 @@ boolean internalReleaseLease(Lease lease, String src, INodesInPath iip,
|
||||
"RecoveryId = " + blockRecoveryId + " for block " + lastBlock);
|
||||
}
|
||||
lease = reassignLease(lease, src, recoveryLeaseHolder, pendingFile);
|
||||
leaseManager.renewLease(lease);
|
||||
if (recoveryLeaseHolder == null) {
|
||||
leaseManager.renewLease(lease);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user