ierandra commented on code in PR #1748:
URL: https://github.com/apache/jackrabbit-oak/pull/1748#discussion_r1846753158
##########
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:
based on what I looked the solution is to add a 3rd azure connection only
for the lease.
--
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]