Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12154

Incorrect javadoc description in StorageLocationChecker#check

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-beta1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      StorageLocationChecker#check returns list of healthy volumes, but javadoc states that it returns failed volumes.

      /**
         * 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.
         */
      

        Attachments

          Activity

            People

            • Assignee:
              nandakumar131 Nanda kumar
              Reporter:
              nandakumar131 Nanda kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: