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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      Thanks to Prabushankar Chinnasamy 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment