You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Jeff Storck (JIRA)" <ji...@apache.org> on 2019/02/13 19:36:00 UTC

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

Jeff Storck created NIFI-6023:
---------------------------------

             Summary: 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


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)