This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-4.4.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.4.x by this push:
     new 5e5a7676539 CAMEL-20995: azure-blob Enable retry during upload if 
input stream support mark/reset (#14911)
5e5a7676539 is described below

commit 5e5a767653943693e7d9b3ef14533a773fc95972
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Jul 23 15:26:56 2024 +0200

    CAMEL-20995: azure-blob Enable retry during upload if input stream support 
mark/reset (#14911)
    
    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);

Reply via email to