Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 1.24.x] Fix Azure blobstore error instantiating AzureClient #1310

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

aaime
Copy link
Member

@aaime aaime commented Aug 19, 2024

Backport #1298
Authored by: @groldan

commit 72ce566 "Avoid infinite number of calls to listBlobs when
doing prefix removals (e..g, gridset or layer removals)"
changed the gwc `AzureClient` check for container existence from an
attemp to create it to an attempt to get its properties before creating
it.

When the container doesn't exist, the blocking call throws
`com.microsoft.azure.storage.blob.StorageException`, which contains the
status code.

Wrap that call in a try-catch block and get the status code from the
exception.
@aaime aaime merged commit f750bde into 1.24.x Aug 20, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants