This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ec4c91a01c9 CAMEL-20995: azure-blob Enable retry during upload if
input stream support mark/reset
ec4c91a01c9 is described below
commit ec4c91a01c9dc51b5ca2931d492e4fed705e2cd3
Author: Herve Dumont <[email protected]>
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);