You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/02/03 00:04:00 UTC

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

    [ https://issues.apache.org/jira/browse/NIFI-8187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277538#comment-17277538 ] 

ASF subversion and git services commented on NIFI-8187:
-------------------------------------------------------

Commit 77eb8af275fc76fdbdc7e657bc821fc19bac3f0a in nifi's branch refs/heads/main from Peter Turcsanyi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=77eb8af ]

NIFI-8187: Fixed PutSQL duplicating provenance events

Also fixed provenance event mocking in test framework.

Signed-off-by: Matthew Burgess <ma...@apache.org>

This closes #4796


> 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: 0.5h
>  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)