You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/07/23 13:00:00 UTC
(camel) 01/01: CAMEL-20995: azure-blob Enable retry during upload if input stream support mark/reset
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 20995-4.4.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 9a92a670126b31ba2b6665b15364406abb398d08
Author: Herve Dumont <hd...@opentext.com>
AuthorDate: Fri Jul 19 14:44:20 2024 +0200
CAMEL-20995: azure-blob Enable retry during upload if input stream support mark/reset
---
.../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);