ChenSammi commented on code in PR #5974:
URL: https://github.com/apache/ozone/pull/5974#discussion_r1448549626
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMRecoverLeaseRequest.java:
##########
@@ -209,6 +213,13 @@ private RecoverLeaseResponse doWork(OzoneManager
ozoneManager,
throw new OMException("Open Key " + dbOpenFileKey + " not found in
openKeyTable", KEY_NOT_FOUND);
}
+ final long leaseSoftLimit = ozoneManager.getConfiguration()
Review Comment:
We should move this check before the OzoneConsts.LEASE_RECOVERY already
exists check, otherwise, the second call of recoverLease will fail due to this
soft limit check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]