[
https://issues.apache.org/jira/browse/NIFI-12067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17771887#comment-17771887
]
ASF subversion and git services commented on NIFI-12067:
--------------------------------------------------------
Commit 6929ddecb62b247451fc12ca7a82ca33dea7628e in nifi's branch
refs/heads/support/nifi-1.x from Eric Secules
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=6929ddecb6 ]
[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: 40m
> 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)