[
https://issues.apache.org/jira/browse/NIFI-12067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17771885#comment-17771885
]
ASF subversion and git services commented on NIFI-12067:
--------------------------------------------------------
Commit 746dad7f4692581cd11020e8414cc4e3f8fc74fe in nifi's branch
refs/heads/main from Eric Secules
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=746dad7f46 ]
[NIFI-12067] mock process session keeps track of flowfiles created during the
session and removes them on rollback rather than putting them on the input
queue (#7827)
rename method to be more descriptive, fix checkstyle error for trailing
whitespace in TestMockProcessSession.java
added session.transfer call to unit tests so that they fail without the fixes.
Co-authored-by: Eric Secules <[email protected]>
> MockProcessSession sends created/cloned flowfiles to the input queue on
> rollback
> --------------------------------------------------------------------------------
>
> Key: NIFI-12067
> URL: https://issues.apache.org/jira/browse/NIFI-12067
> Project: Apache NiFi
> Issue Type: Bug
> Components: Tools and Build
> Affects Versions: 1.23.2
> Reporter: Eric Secules
> Assignee: Eric Secules
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> This happens when flowfiles created or cloned by the processor under test are
> routed to a relationship and then the session is rolled back.
> Those flowfiles should be deleted rather than put on the input queue.
> The MockProcessSession implements rollback by putting all flowfiles on it's
> transfer map back on the input queue without regard for whether the flowfiles
> was created or cloned by the session.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)