Add bulk delete method to BlobStore interface and implementations (#98948)

This commit is contained in:
Francisco Fernández Castaño 2023-08-29 12:25:03 +02:00 committed by GitHub
parent 01686a8093
commit f6a2b5c9ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 196 additions and 89 deletions

View file

@ -21,8 +21,10 @@ import org.elasticsearch.common.unit.ByteSizeUnit;
import org.elasticsearch.common.unit.ByteSizeValue;
import org.elasticsearch.core.CheckedFunction;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Iterator;
import java.util.List;
/**
@ -105,6 +107,11 @@ public class URLBlobStore implements BlobStore {
}
}
@Override
public void deleteBlobsIgnoringIfNotExists(Iterator<String> blobNames) throws IOException {
throw new UnsupportedOperationException("Bulk deletes are not supported in URL repositories");
}
@Override
public void close() {
// nothing to do here...