Aldrin Piri created NIFI-647:
--------------------------------
Summary: Duplicating provenance reporting via session creates
unexpected behavior
Key: NIFI-647
URL: https://issues.apache.org/jira/browse/NIFI-647
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 0.1.0, 0.0.2
Reporter: Aldrin Piri
This is related to NIFI-643. While that processor bug was resolved, there are
issues with how this is managed in the framework.
The unexpected behavior is created via the following:
https://github.com/apache/incubator-nifi/blob/d29a2d688e437bae42c12115768cdb038b7406c5/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/SplitJson.java#L196
Summarily, a series of files (splits) are created from the parent file which
generates the associated FORK provenance events. The separate call to the
provenance reporter at Line 196 also requests a FORK for each of the generated
files. This manifests itself as being CREATE events for each of the FORKed
files and causes an error:
{code}
Found cycle in graph. This indicates that multiple events were registered
claiming to have generated the same FlowFile (UUID =
21b663c2-2406-49cb-b740-76dd64f54be8)
{code}
Ideally, such behavior would also be detected by the test framework.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)