mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
* We need a `markSupported` input stream to retry uploads * Relates #45153
This commit is contained in:
parent
772ce1f599
commit
5d7fafec14
@ -99,6 +99,7 @@ class S3BlobContainer extends AbstractBlobContainer {
|
||||
*/
|
||||
@Override
|
||||
public void writeBlob(String blobName, InputStream inputStream, long blobSize, boolean failIfAlreadyExists) throws IOException {
|
||||
assert inputStream.markSupported() : "No mark support on inputStream breaks the S3 SDK's ability to retry requests";
|
||||
SocketAccess.doPrivilegedIOException(() -> {
|
||||
if (blobSize <= blobStore.bufferSizeInBytes()) {
|
||||
executeSingleUpload(blobStore, buildKey(blobName), inputStream, blobSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user