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

Andre Bonin resolved NIFI-7504.
-------------------------------
    Resolution: Invalid

> TestRunner Does not maintain session creation order when testing a 
> SessionFactoryProcessor
> ------------------------------------------------------------------------------------------
>
>                 Key: NIFI-7504
>                 URL: https://issues.apache.org/jira/browse/NIFI-7504
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.9.1
>            Reporter: Andre Bonin
>            Assignee: Andre Bonin
>            Priority: Minor
>
> If a processor extends AbstractSessionFactoryProcessor and creates its own 
> sessions for flowfile transfer, the TestRunner.getFlowFilesForRelationship() 
> returns an un-ordered set of flowfiles that does not represent the order at 
> which the flowfiles were transfered.
> This is due to the fact that the TestRunner uses an unsorted set to keep the 
> sessions that were created.  When it iterates through them to get the 
> flowfiles, the sessions do not reflect the creation order thereby the flow 
> files within those sessions get aded to the returned list in a random way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to