[
https://issues.apache.org/jira/browse/NIFI-4562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16284167#comment-16284167
]
ASF subversion and git services commented on NIFI-4562:
-------------------------------------------------------
Commit 1fc1d38fd8bec39d7358c7e04e024d563fc26492 in nifi's branch
refs/heads/master from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=1fc1d38 ]
NIFI-4562: This closes #2331. If an Exception is thrown when merging FlowFiles,
ensure that we remove the 'bundle' flowfile before exiting the method
Signed-off-by: joewitt <[email protected]>
> MergeContent errors with FlowFileHandlingException: transfer relationship not
> specified if IOException thrown
> -------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-4562
> URL: https://issues.apache.org/jira/browse/NIFI-4562
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Mark Payne
> Assignee: Mark Payne
> Fix For: 1.5.0
>
> Attachments: NIFI-4562.xml
>
>
> If an IOException is thrown when merging FlowFiles (for instance out of disk
> space or too many open files), it will be converted to a ProcessException,
> and BinFiles will catch that. It will then transfer FlowFiles to 'failure'
> and call session.commit(). However, if a 'merged' FlowFile already was
> created then it does not get removed. As a result, the call to session.commit
> will throw a FlowFileHandlingException indicating that the FlowFile's
> transfer relationship is not set.
> We need to make sure that each of the 'mergers' catches this ProcessException
> and removes the created 'bundled' flowfile before re-throwing it.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)