NIFI-10574: Fixed PutAzureDataLakeStorage fails with HTTP 412 error

This closes #6470

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Peter Turcsanyi 2022-10-02 22:29:11 +02:00 committed by exceptionfactory
parent 518f413d9f
commit 271c773ee4
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
1 changed files with 2 additions and 1 deletions

View File

@ -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