mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
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:
parent
f211f6a65b
commit
32937109ac
16 changed files with 241 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue