Eric Secules created NIFI-10583:
-----------------------------------
Summary: StandardProcessSession and MockProcessSession Handle
Attribute Update Differently
Key: NIFI-10583
URL: https://issues.apache.org/jira/browse/NIFI-10583
Project: Apache NiFi
Issue Type: Bug
Affects Versions: 1.17.0, 1.14.0
Reporter: Eric Secules
When writing some custom processors I noticed that I can execute the following
code in onTrigger which would set the attribute when I run in
StandardProcessSession on a real nifi, but would fail my unit tests.
{code:java}
FlowFile ff = session.get();
session.putAttribute(ff, "foo", "123");
session.transfer.(ff, REL_SUCCESS)
{code}
So the StandardProcessSession mutates the flowfile passed in while the
MockProcessSession does not.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)