You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andre Bonin (Jira)" <ji...@apache.org> on 2020/06/03 20:50:00 UTC
[jira] [Created] (NIFI-7504) TestRunner Does not maintain session
order if testing a SessionFactoryProcessor
Andre Bonin created NIFI-7504:
---------------------------------
Summary: TestRunner Does not maintain session order if 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
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)