This is an automated email from the ASF dual-hosted git repository. adulceanu pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push: new 42faf5b64e OAK-10191 - Reusing Azure blob container hangs when primary location is not available (#899) 42faf5b64e is described below commit 42faf5b64ead97aeadd7c790af3a07514f09514c Author: Andrei Dulceanu <dulce...@users.noreply.github.com> AuthorDate: Fri Apr 14 18:13:40 2023 +0300 OAK-10191 - Reusing Azure blob container hangs when primary location is not available (#899) --- .../oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java b/oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java index a4e88c3693..a017f7fff0 100644 --- a/oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java +++ b/oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java @@ -204,7 +204,8 @@ public class AzureBlobStoreBackend extends AbstractSharedBackend { CloudBlobContainer azureContainer = getAzureContainer(); - if (createBlobContainer && azureContainer.createIfNotExists()) { + if (createBlobContainer && !azureContainer.exists()) { + azureContainer.create(); LOG.info("New container created. containerName={}", containerName); } else { LOG.info("Reusing existing container. containerName={}", containerName);