This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-4.0.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.0.x by this push: new facb771db3f CAMEL-20995: azure-blob Enable retry during upload if input stream support mark/reset (#14912) facb771db3f is described below commit facb771db3febb81824a903a746f748c5ca4a787 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Jul 23 15:28:02 2024 +0200 CAMEL-20995: azure-blob Enable retry during upload if input stream support mark/reset (#14912) Co-authored-by: Herve Dumont <hdum...@opentext.com> --- .../camel/component/azure/storage/blob/client/BlobClientWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/client/BlobClientWrapper.java b/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/client/BlobClientWrapper.java index f020b542fdf..d7e3290d1f1 100644 --- a/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/client/BlobClientWrapper.java +++ b/components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/client/BlobClientWrapper.java @@ -124,7 +124,7 @@ public class BlobClientWrapper { final Map<String, String> metadata, AccessTier tier, final byte[] contentMd5, final BlobRequestConditions requestConditions, final Duration timeout) { - Flux<ByteBuffer> dataBuffer = Utility.convertStreamToByteBuffer(data, length, 4194304, false); + Flux<ByteBuffer> dataBuffer = Utility.convertStreamToByteBuffer(data, length, 4194304, data.markSupported()); BlockBlobSimpleUploadOptions uploadOptions = new BlockBlobSimpleUploadOptions(dataBuffer, length).setHeaders(headers) .setMetadata(metadata).setTier(tier).setContentMd5(contentMd5).setRequestConditions(requestConditions); return getBlockBlobClient().uploadWithResponse(uploadOptions, timeout, Context.NONE);