File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
core/src/main/java/com/scalar/db/storage/objectstorage/blob Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,16 @@ public void deleteByPrefix(String prefix) throws ObjectStorageWrapperException {
177177 try {
178178 client
179179 .listBlobs (new ListBlobsOptions ().setPrefix (prefix ), requestTimeoutInSeconds )
180- .forEach (blobItem -> client .getBlobClient (blobItem .getName ()).delete ());
180+ .forEach (
181+ blobItem -> {
182+ try {
183+ client .getBlobClient (blobItem .getName ()).delete ();
184+ } catch (BlobStorageException e ) {
185+ if (!e .getErrorCode ().equals (BlobErrorCode .BLOB_NOT_FOUND )) {
186+ throw e ;
187+ }
188+ }
189+ });
181190 } catch (Exception e ) {
182191 throw new ObjectStorageWrapperException (
183192 String .format ("Failed to delete the objects with prefix '%s'" , prefix ), e );
You can’t perform that action at this time.
0 commit comments