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

Chris Nauroth commented on HDFS-5895:
-------------------------------------

Hi, [~tassapola].  Thanks for filing the bug.  I think we're just going to need 
to change this code from the {{CacheAdmin}} class:

{code}
      // If there are no results, we return 1 (failure exit code);
      // otherwise we return 0 (success exit code).
      return (numResults == 0) ? 1 : 0;
{code}


> HDFS cacheadmin -listPools has exit_code of 1 when the command returns 0 
> result.
> --------------------------------------------------------------------------------
>
>                 Key: HDFS-5895
>                 URL: https://issues.apache.org/jira/browse/HDFS-5895
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 3.0.0
>            Reporter: Tassapol Athiapinya
>             Fix For: 3.0.0
>
>         Attachments: HDFS-5895.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to