ierandra commented on code in PR #1748:
URL: https://github.com/apache/jackrabbit-oak/pull/1748#discussion_r1850034506
##########
oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureRepositoryLock.java:
##########
@@ -128,11 +130,7 @@ private void refreshLease() {
long timeSinceLastUpdate = (System.currentTimeMillis() -
lastUpdate) / 1000;
try {
if (timeSinceLastUpdate > renewalInterval) {
-
- BlobRequestOptions requestOptions = new
BlobRequestOptions();
-
requestOptions.setMaximumExecutionTimeInMs(LEASE_RENEWAL_TIMEOUT_MS);
- requestOptions.setRetryPolicyFactory(new RetryNoRetry());
-
blob.renewLease(AccessCondition.generateLeaseCondition(leaseId),
requestOptions, null);
+ leaseId =
leaseClient.renewLeaseWithResponse((RequestConditions) null,
Duration.ofMillis(LEASE_RENEWAL_TIMEOUT_MS), Context.NONE).getValue();
Review Comment:
Fixed.
Please see
[here](https://github.com/apache/jackrabbit-oak/pull/1748/files#diff-b65efa629fa7270d497f11dcd21c47eaab5c62ecb4b9678bbccad1cbf11ed655R163)
and
[here](https://github.com/apache/jackrabbit-oak/pull/1748/files#diff-6cb64325f2cf9b91bb125fa6e38c3d3ccec612c4866fa4a6e5e6ddf188561260R104-R105)
--
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]