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

[jira] [Updated] (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:all-tabpanel ]

Matt Burgess updated NIFI-8680:
-------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> 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)