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:
He Xiaoqiao 2021-03-22 18:37:00 +08:00
parent 648bbbdad6
commit 03a3a04c06
No known key found for this signature in database
GPG Key ID: A80CC124E9A0FA63

View File

@ -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;