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 2019/02/15 19:13:00 UTC

[jira] [Commented] (NIFI-6023) ListHDFS throws misleading exception regarding Distributed Cache Service

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

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

Commit b7ca59f568a71ba476cdee95348b8ce3edd381f4 in nifi's branch refs/heads/master from Jeff Storck
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b7ca59f ]

NIFI-6023: Deprecated the "Distributed Cache Service" property in ListHDFS
Updated exception message thrown when accessing the ListHDFS state to refer to the State Manager rather than the "Distributed Cache Service"
Removed usage and references to MockCacheClient from TestListHDFS

NIFI-6023: Minor update of the "Distributed Cache Service" description

This closes #3313.

Signed-off-by: Bryan Bende <bb...@apache.org>


> ListHDFS throws misleading exception regarding Distributed Cache Service
> ------------------------------------------------------------------------
>
>                 Key: NIFI-6023
>                 URL: https://issues.apache.org/jira/browse/NIFI-6023
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.8.0
>            Reporter: Jeff Storck
>            Assignee: Jeff Storck
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In the `ListHDFS.onTrigger` method, the processor attempts to retrieve the state for the processor which can throw an IOException.  The catch block for that code logs the exception with a message of `Failed to retrieve timestamp of last listing from Distributed Cache Service. Will not perform listing until this is accomplished`.  This is misleading, since the DistributedMapCacheClient is not used by ListHDFS.
> The error message should be updated to inform the user of the actual error, that the state manager could not be reached, or state could not be retrieved from the state manager.  It'd also help to include the exception (stack trace) itself in the log.
> The `Distributed Cache Service` property should be deprecated and its description should be updated, since the property will be ignored.  State is stored by the state manager locally, or in ZK if NiFi is clustered.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)