marklogic / nifi

Mirror of Apache NiFi to support ongoing MarkLogic integration efforts
https://marklogic.github.io/nifi/
Apache License 2.0
12 stars 23 forks source link

DEVEXP-44: DeleteML creates new FlowFiles from incoming FlowFile #177

Closed rjrudin closed 1 year ago

rjrudin commented 1 year ago

Realized during testing that as a result of creating a new FlowFile from the incoming FlowFile, we can't call commitAsync in the middle of onTrigger as that prevents more FlowFiles from being created from the incoming one.

As a result, reworked several processors so that they only call commitAsync() once - at the end of onTrigger, regardless of whether an error occurs or not.

Also added a missing test scenario for DeleteMarkLogic where the user is able to read URIs but not delete them. This tests the "on batch failure" listener in DeleteMarkLogic.