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:04:00 UTC
[jackrabbit-oak] 01/01: OAK-10190 - Reusing Azure segment container hangs when primary location is not available
This is an automated email from the ASF dual-hosted git repository.
adulceanu pushed a commit to branch issues/OAK-10190
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit b0f7d3d1ca14455481ed7e743f737fabff1e39e2
Author: dulceanu <an...@gmail.com>
AuthorDate: Fri Apr 14 17:03:23 2023 +0200
OAK-10190 - Reusing Azure segment container hangs when primary location is not available
---
.../apache/jackrabbit/oak/segment/azure/AzureSegmentStoreService.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureSegmentStoreService.java b/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureSegmentStoreService.java
index 9f515bda21..0ccf7fe475 100644
--- a/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureSegmentStoreService.java
+++ b/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureSegmentStoreService.java
@@ -134,8 +134,8 @@ public class AzureSegmentStoreService {
cloudBlobClient.setDefaultRequestOptions(blobRequestOptions);
CloudBlobContainer container = cloudBlobClient.getContainerReference(configuration.containerName());
- if (createContainer) {
- container.createIfNotExists();
+ if (createContainer && !container.exists()) {
+ container.create();
}
String path = normalizePath(configuration.rootPath());
return new AzurePersistence(container.getDirectoryReference(path));