[
https://issues.apache.org/jira/browse/NIFI-8187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Burgess updated NIFI-8187:
-------------------------------
Status: Patch Available (was: Open)
> PutSQL can duplicate provenance events
> --------------------------------------
>
> Key: NIFI-8187
> URL: https://issues.apache.org/jira/browse/NIFI-8187
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Peter Turcsanyi
> Assignee: Peter Turcsanyi
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {{PutSQL.putFlowFiles}} gets called in a loop and it collects the executed
> FFs in a {{RoutingResult}} object which is basically a map. The method also
> sends provenance events for the processed FFs.
> Bug: the method sends the events in every iteration for all the FFs already
> in the map, which leads to duplicated events in provenance history.
> https://github.com/apache/nifi/blob/d72bfc76b58e035d5a10caa3a06efbcd7daab776/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java#L387
--
This message was sent by Atlassian Jira
(v8.3.4#803005)