ierandra commented on code in PR #1748:
URL: https://github.com/apache/jackrabbit-oak/pull/1748#discussion_r1842356567
##########
oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureRepositoryLock.java:
##########
@@ -144,14 +142,14 @@ private void refreshLease() {
writeAccessController.disableWriting();
}
- if (e instanceof StorageException) {
- StorageException storageException = (StorageException) e;
- if (Set.of(StorageErrorCodeStrings.OPERATION_TIMED_OUT
- , StorageErrorCode.SERVICE_INTERNAL_ERROR
- , StorageErrorCodeStrings.SERVER_BUSY
- ,
StorageErrorCodeStrings.INTERNAL_ERROR).contains(storageException.getErrorCode()))
{
+ if (e instanceof BlobStorageException) {
+ BlobStorageException storageException =
(BlobStorageException) e;
+ if (Set.of(BlobErrorCode.OPERATION_TIMED_OUT,
+ BlobErrorCode.SERVER_BUSY,
+
BlobErrorCode.INTERNAL_ERROR).contains(storageException.getErrorCode())) {
log.warn("Could not renew the lease due to the
operation timeout or service unavailability. Retry in progress ...", e);
- } else if (storageException.getHttpStatusCode() ==
Constants.HeaderConstants.HTTP_UNUSED_306) {
+ //TODO: ierandra
Review Comment:
removed since response 306 is not present in sdk 12
--
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]