You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2026/05/04 20:56:00 UTC

[jira] [Updated] (NIFI-15904) StandardProcessSession.create() produces FlowFiles with ambigous Start Lineage Index

     [ https://issues.apache.org/jira/browse/NIFI-15904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Handermann updated NIFI-15904:
------------------------------------
    Status: Patch Available  (was: Open)

> 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
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)