ierandra commented on code in PR #1861: URL: https://github.com/apache/jackrabbit-oak/pull/1861#discussion_r1865900160
########## oak-blob-cloud-azure/src/main/java/org/apache/jackrabbit/oak/blob/cloud/azure/blobstorage/AzureBlobStoreBackend.java: ########## @@ -727,26 +604,22 @@ public void deleteAllMetadataRecords(String prefix) { try { Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); - CloudBlobDirectory metaDir = getAzureContainer().getDirectoryReference(META_DIR_NAME); int total = 0; - for (ListBlobItem item : metaDir.listBlobs(prefix)) { - if (item instanceof CloudBlob) { - if (((CloudBlob)item).deleteIfExists()) { - total++; - } + + for (BlobItem blobItem : getAzureContainer().listBlobsByHierarchy(META_DIR_NAME)) { Review Comment: same as above: `listBlobsByHierarchy` is listing only the hierarchy, so `META/`. this has to be changed with ``` ListBlobsOptions listBlobsOptions = new ListBlobsOptions(); listBlobsOptions.setPrefix(META_DIR_NAME); getAzureContainer().listBlobs(listBlobsOptions, null); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org