David Handermann created NIFI-15904:
---------------------------------------
Summary: StandardProcessSession.create() produces FlowFiles with
ambigous Start Lineage Index
Key: NIFI-15904
URL: https://issues.apache.org/jira/browse/NIFI-15904
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 2.9.0, 2.0.0
Reporter: David Handermann
Assignee: David Handermann
The {{StandardProcessSession.create()}} method creates a new {{FlowFile}}
without a parent, setting the entry date and lineage start date to the current
time in milliseconds. The {{create()}} method does not set the Lineage Start
Index, keeping the default value of 0. As a result of this behavior, it is
possible for multiple {{FlowFile}} objects to be created with the same
millisecond timestamp, making the lineage order unclear. The
{{lineageStartIndex}} should be specified to an incrementing number to provide
unambiguous ordering as documented in {{FlowFile.getLineageStartIndex()}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)