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

NPE while running Mover if the given path is for a file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • balancer & mover
    • None
    • Reviewed

    Description

      Thanks to prabushankar.c for reporting this issue!

      Currently in the new migration tool Mover, we allow users to specify a list of paths for migration. Then in Mover#processNamespace we directly call getFileInfo to retrieve the status of the given path. If the given path is a file, the returned HdfsFileStatus does not contain block location information, this can trigger an NPE.

      Attachments

        1. HDFS-7167.000.patch
          6 kB
          Jing Zhao

        Activity

          People

            jingzhao Jing Zhao
            prabushankar.c Prabushankar Chinnasamy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: