This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 271c773ee4 NIFI-10574: Fixed PutAzureDataLakeStorage fails with HTTP
412 error
271c773ee4 is described below
commit 271c773ee4ef618471c9b58fe386207b6bf86cfb
Author: Peter Turcsanyi <[email protected]>
AuthorDate: Sun Oct 2 22:29:11 2022 +0200
NIFI-10574: Fixed PutAzureDataLakeStorage fails with HTTP 412 error
This closes #6470
Signed-off-by: David Handermann <[email protected]>
---
.../apache/nifi/processors/azure/storage/PutAzureDataLakeStorage.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/storage/PutAzureDataLakeStorage.java
b/nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/storage/PutAzureDataLakeStorage.java
index dbd6138e15..6dd03e84de 100644
---
a/nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/storage/PutAzureDataLakeStorage.java
+++
b/nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/storage/PutAzureDataLakeStorage.java
@@ -215,7 +215,8 @@ public class PutAzureDataLakeStorage extends
AbstractAzureDataLakeStorageProcess
chunkStart += chunkSize;
}
- fileClient.flush(length);
+ // use overwrite mode due to
https://github.com/Azure/azure-sdk-for-java/issues/31248
+ fileClient.flush(length, true);
}
//Visible for testing