File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
plugins/repository-s3/src/test/java/org/elasticsearch/repositories/s3 Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -158,11 +158,7 @@ public DeleteObjectsResult deleteObjects(DeleteObjectsRequest request) throws Sd
158158
159159 final List <DeleteObjectsResult .DeletedObject > deletions = new ArrayList <>();
160160 for (DeleteObjectsRequest .KeyVersion key : request .getKeys ()) {
161- if (blobs .remove (key .getKey ()) == null ) {
162- AmazonS3Exception exception = new AmazonS3Exception ("[" + key + "] does not exist." );
163- exception .setStatusCode (404 );
164- throw exception ;
165- } else {
161+ if (blobs .remove (key .getKey ()) != null ) {
166162 DeleteObjectsResult .DeletedObject deletion = new DeleteObjectsResult .DeletedObject ();
167163 deletion .setKey (key .getKey ());
168164 deletions .add (deletion );
You can’t perform that action at this time.
0 commit comments