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

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

Commit add2146992e91d50a71eb67f41d336272825430e in nifi's branch 
refs/heads/support/nifi-1.11.x from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=add2146 ]

NIFI-7073: This closes #4025. Route to failure when error on PutHDFS file 
system close

Signed-off-by: Joe Witt <[email protected]>


> PutHDFS silently ignores exceptions when closing temporary file output stream
> -----------------------------------------------------------------------------
>
>                 Key: NIFI-7073
>                 URL: https://issues.apache.org/jira/browse/NIFI-7073
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Michael Hogue
>            Assignee: Matt Burgess
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The PutHDFS processor can silently fail when closing an output stream when 
> it's finished writing FlowFiles to a temporary space in HDFS. 
> {{DFSOutputStream}} can throw an {{IOException}} when it's closed and that's 
> ignored by the processor. This results in the FlowFile getting dropped (e.g. 
> a loss of data) when it should be routed to the failure relationship.
> Source: 
> [https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/PutHDFS.java#L365]
> Instead, the exception should be caught & thrown and the FlowFile should be 
> routed to the failure relationship. There's probably an argument to avoid 
> ignoring _any_ exception.



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

Reply via email to