[
https://issues.apache.org/jira/browse/NIFI-3622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Secules resolved NIFI-3622.
--------------------------------
Resolution: Duplicate
> MockFlowFile doesn't transfer penalized state when creating a new version
> -------------------------------------------------------------------------
>
> Key: NIFI-3622
> URL: https://issues.apache.org/jira/browse/NIFI-3622
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Joe Percivall
> Priority: Minor
>
> In this constructor[1] a new MockFlowFile is being created from an old one.
> This is used in many places, one of which is the putAttribute()[2]. So if the
> flowfile is penalized followed by "putAttribute" the flowfile will no longer
> be penalized.
> This does not match the corresponding behavior in StandardFlowFileRecord
> which transfers the expiration time[3].
> [1]
> https://github.com/mcgilman/nifi/blob/96ed405d708894ee5400ebbdbf335325219faa09/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java#L65-L65
> [2]
> https://github.com/mcgilman/nifi/blob/c441a8696d8dce47f263846cdf5ecac8506ba5d3/nifi-mock/src/main/java/org/apache/nifi/util/MockProcessSession.java#L485-L485
> [3]
> https://github.com/mcgilman/nifi/blob/39cfd0339756e3869d0e3f3bcf45569855d6bca3/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/StandardFlowFileRecord.java#L305-L305
--
This message was sent by Atlassian Jira
(v8.20.10#820010)