Ignore CONTAINER_NOT_FOUND when deleting a bucket

Reference #606.
pull/702/head
Andrew Gaul 2024-10-26 23:11:06 -07:00
rodzic 39ca93bbac
commit e40f0405df
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -190,7 +190,13 @@ public final class AzureBlobStore extends BaseBlobStore {
@Override
public void deleteContainer(String container) {
blobServiceClient.deleteBlobContainer(container);
try {
blobServiceClient.deleteBlobContainer(container);
} catch (BlobStorageException bse) {
if (bse.getErrorCode() != BlobErrorCode.CONTAINER_NOT_FOUND) {
throw bse;
}
}
}
@Override