Jing Zhao created HDFS-7167: ------------------------------- Summary: NPE while running Mover if the given path is for a file Key: HDFS-7167 URL: https://issues.apache.org/jira/browse/HDFS-7167 Project: Hadoop HDFS Issue Type: Bug Reporter: Jing Zhao Assignee: Jing Zhao
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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)