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 2019/12/17 17:04:00 UTC

[jira] [Updated] (NIFI-6956) PutHive3Streaming improperly handles permissions error by reporting NPE

     [ https://issues.apache.org/jira/browse/NIFI-6956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Burgess updated NIFI-6956:
-------------------------------
    Status: Patch Available  (was: In Progress)

> PutHive3Streaming improperly handles permissions error by reporting NPE
> -----------------------------------------------------------------------
>
>                 Key: NIFI-6956
>                 URL: https://issues.apache.org/jira/browse/NIFI-6956
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In the PutHive3Streaming processor, there is an exception handler that assumes that any connection errors have already been handled, and thus assumes there are connection statistics to add as attributes to the flow file being routed to failure. 
> However there are some errors such as filesystem permissions errors (if the user is not allowed to write into the Hive warehouse) that are not previously caught, yet the connection has not been created. This causes a NullPointerException when the connection statistics (records written) are added as attribute(s), which causes a rollback instead of routing the flow file to failure.
> A null check should be added to skip the setting of the attribute if no connection is available, thus allowing the flow file to be correctly routed to failure



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