[ 
https://issues.apache.org/jira/browse/NIFI-12158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17771605#comment-17771605
 ] 

ASF subversion and git services commented on NIFI-12158:
--------------------------------------------------------

Commit 721628eb955f0f52d8ece0db2afe784c0a144008 in nifi's branch 
refs/heads/main from Eric Secules
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=721628eb95 ]

NIFI-12158 MockProcessSession write methods preserves attributes (#7828)

Co-authored-by: Eric Secules <[email protected]>

> NiFi Mock Process Session Does Not Preserve Attributes when Using Wirte
> -----------------------------------------------------------------------
>
>                 Key: NIFI-12158
>                 URL: https://issues.apache.org/jira/browse/NIFI-12158
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.23.2
>            Reporter: Eric Secules
>            Assignee: Eric Secules
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The MockProcessSession behaves differently from the StandardProcessSession 
> when it comes to altering the flowfile attributes. Some attribute 
> modifications do not seem to take hold. This is because a couple of the write 
> methods implemented in MockProcessSession return a modification of the 
> flowfile passed in rather than the intended behaviour outlined in NIFI-3860 
> -- a modification of the most recent version of the flowfile passed in. It 
> also updates the currentVersions map with the modified version of the 
> flowfile passed in which might not be current.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to