You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Peter Turcsanyi (Jira)" <ji...@apache.org> on 2021/02/01 15:54:00 UTC

[jira] [Created] (NIFI-8187) PutSQL can duplicate provenance events

Peter Turcsanyi created NIFI-8187:
-------------------------------------

             Summary: 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


{{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)