Ieran Draghiciu created OAK-11759:
-------------------------------------
Summary: Repo lock cannot be acquired if repo.lock blob is already
present
Key: OAK-11759
URL: https://issues.apache.org/jira/browse/OAK-11759
Project: Jackrabbit Oak
Issue Type: Bug
Components: segment-azure
Reporter: Ieran Draghiciu
If {{repo.lock}} already exits the lock cannot be acquired:
{code:java}
12.06.2025 19:40:59.424 *INFO* [reactor-http-nio-1]
org.apache.jackrabbit.oak.segment.azure.AzureHttpRequestLoggingPolicy HTTP
Request: HEAD
https://sa077180163020602e82aca2.blob.core.windows.net/aem-sgmt-f0a41250eaa26fbb278977e04e2a257e42df2dc3-0007bc/aem%2Frepo.lock
200 8ms
12.06.2025 19:40:59.425 *ERROR* [FelixStartLevel]
com.azure.storage.blob.specialized.BlockBlobClient Blob already exists. Specify
overwrite to true to force update the blob.
12.06.2025 19:40:59.425 *INFO* [FelixStartLevel]
org.apache.jackrabbit.oak.segment.azure.AzureRepositoryLock Can't acquire the
lease. Retrying every 1s. Timeout is set to 1800s.
{code}
This is because the new azure sdk 12 required [explicitly to set true for
overriding the
blob|https://github.com/ierandra/jackrabbit-oak/blob/0e2a7d1e8b9bcf19b67e63ccfb5d321fa97f71d4/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureRepositoryLock.java#L92]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)