You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ex...@apache.org on 2022/10/02 22:59:27 UTC
[nifi] branch main updated: NIFI-10574: Fixed PutAzureDataLakeStorage fails with HTTP 412 error
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 <tu...@apache.org>
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 <ex...@apache.org>
---
.../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