You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/06/10 14:14:00 UTC

[jira] [Commented] (NIFI-8680) Process Session does not throw Exception when calling commitAsync() without properly handling all FlowFiles

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

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

Commit 5c91143dc2f77d3656ff29f7a31fb341ded1cf76 in nifi's branch refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=5c91143 ]

NIFI-8680: Ensure that if commitAsync() is called and an Exception caught that it is rethrown

Signed-off-by: Matthew Burgess <ma...@apache.org>

This closes #5143


> Process Session does not throw Exception when calling commitAsync() without properly handling all FlowFiles
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-8680
>                 URL: https://issues.apache.org/jira/browse/NIFI-8680
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.14.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When the commitAsync methods were added to ProcessSession, the javadocs indicate:
> {code:java}
> * @throws IllegalStateException if called from within a callback (See {@link #write(FlowFile, StreamCallback)}, {@link #write(FlowFile, OutputStreamCallback)},
> * {@link #read(FlowFile, InputStreamCallback)}).
> *
> * @throws FlowFileHandlingException if any FlowFile is not appropriately accounted for by transferring it to a Relationship (see {@link #transfer(FlowFile, Relationship)})
> * or removed (see {@link #remove(FlowFile)}. {code}
> However, those Exceptions don't actually get thrown. In those situations, the session is rolled back, the error logged, but the session does not re-throw the Exception



--
This message was sent by Atlassian Jira
(v8.3.4#803005)