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

Joseph Witt commented on NIFI-2376:
-----------------------------------

+1.  Will merge to master.  I didn't really read the description of this but 
after reviewing the code/tests/issue came up with the same description!

"In the event of appending to a flow file and doing so more than once in the 
same session on calls after the first call to append if an exception is thrown 
we could incorrectly decrement the reference count to the original flow file 
resulting in potential data loss (when not archiving) and resulting in NPE 
which could further lead to self-supression errors in the JVM"

If this doesn't apply cleanly to 0.x will need another patch for that.

> Content could be prematurely archived/removed if a call to append() throws an 
> Exception
> ---------------------------------------------------------------------------------------
>
>                 Key: NIFI-2376
>                 URL: https://issues.apache.org/jira/browse/NIFI-2376
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Joseph Witt
>            Priority: Blocker
>              Labels: releasenotes
>             Fix For: 1.0.0, 0.8.0
>
>
> If ProcessSession.append() is called multiple times for a FlowFile and in one 
> of the calls other than the first call, an Exception is thrown, the claimant 
> count is decremented more than once. This can result in the content being 
> deleted or archived too soon. Consequently, this could also result in a 
> NullPointerException being thrown when attempting to write to the FlowFile.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to