hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5895) HDFS cacheadmin -listPools has exit_code of 1 when the command returns 0 result.
Date Thu, 06 Feb 2014 05:28:10 GMT

    [ 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)

Mime
View raw message