Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8187

PutSQL can duplicate provenance events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              turcsanyip Peter Turcsanyi
              turcsanyip Peter Turcsanyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m