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

Arpit Agarwal updated HDFS-12154:
---------------------------------
    Fix Version/s:     (was: HDFS-7240)
                   3.0.0-beta1
                   2.9.0

Hi [~nanda], thanks for catching this.

Committed to trunk and branch-2 since the same issue exists in those branches.

> Incorrect javadoc description in StorageLocationChecker#check
> -------------------------------------------------------------
>
>                 Key: HDFS-12154
>                 URL: https://issues.apache.org/jira/browse/HDFS-12154
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Nandakumar
>            Assignee: Nandakumar
>            Priority: Trivial
>             Fix For: 2.9.0, 3.0.0-beta1
>
>         Attachments: HDFS-12154.000.patch
>
>
> {{StorageLocationChecker#check}} returns list of healthy volumes, but javadoc 
> states that it returns failed volumes.
> {code}
> /**
>    * Initiate a check of the supplied storage volumes and return
>    * a list of failed volumes.
>    *
>    * StorageLocations are returned in the same order as the input
>    * for compatibility with existing unit tests.
>    *
>    * @param conf HDFS configuration.
>    * @param dataDirs list of volumes to check.
>    * @return returns a list of failed volumes. Returns the empty list if
>    *         there are no failed volumes.
>    *
>    * @throws InterruptedException if the check was interrupted.
>    * @throws IOException if the number of failed volumes exceeds the
>    *                     maximum allowed or if there are no good
>    *                     volumes.
>    */
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to