You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ad...@apache.org on 2023/04/14 15:13:14 UTC

[jackrabbit-oak] branch issues/OAK-10191 created (now 50540e0c17)

This is an automated email from the ASF dual-hosted git repository.

adulceanu pushed a change to branch issues/OAK-10191
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at 50540e0c17 OAK-10191 - Reusing Azure blob container hangs when primary location is not available

This branch includes the following new commits:

     new 50540e0c17 OAK-10191 - Reusing Azure blob container hangs when primary location is not available

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[jackrabbit-oak] 01/01: OAK-10191 - Reusing Azure blob container hangs when primary location is not available

Posted by ad...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

adulceanu pushed a commit to branch issues/OAK-10191
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 50540e0c171ea66b4a1932c4b5ec87392e9d6aae
Author: dulceanu <an...@gmail.com>
AuthorDate: Fri Apr 14 17:12:29 2023 +0200

    OAK-10191 - Reusing Azure blob container hangs when primary location is not available
---
 .../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);