Support writeAtomicBlob from InputStream for repository blob container interface (#112754)

Mostly for fs and hdfs repos, similar to how writeAtomicBlob from
bytes is implemented (write temp file and rename atomically).

Relates ES-9248
This commit is contained in:
Iraklis Psaroudakis 2024-09-17 15:08:51 +02:00 committed by GitHub
parent f211f6a65b
commit 32937109ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 241 additions and 24 deletions

View file

@ -139,6 +139,17 @@ public class URLBlobContainer extends AbstractBlobContainer {
throw new UnsupportedOperationException("URL repository doesn't support this operation");
}
@Override
public void writeBlobAtomic(
OperationPurpose purpose,
String blobName,
InputStream inputStream,
long blobSize,
boolean failIfAlreadyExists
) throws IOException {
throw new UnsupportedOperationException("URL repository doesn't support this operation");
}
@Override
public void writeBlobAtomic(OperationPurpose purpose, String blobName, BytesReference bytes, boolean failIfAlreadyExists)
throws IOException {