Details
Description
listStatus implementation in ViewFs and getFileStatus does not return consistent values for an element on isDirectory value. listStatus returns isDirectory of all softlinks as false and getFileStatus returns isDirectory as true.
[hdfs@c3121-node2 ~]$ /usr/jdk64/jdk1.8.0_112/bin/java -cp `hadoop classpath`:./hdfs-append-1.0-SNAPSHOT.jar LauncherGetFileStatus "/" FileStatus of viewfs://c3121/testme21may isDirectory:false FileStatus of viewfs://c3121/tmp isDirectory:false FileStatus of viewfs://c3121/foo isDirectory:false FileStatus of viewfs://c3121/tmp21may isDirectory:false FileStatus of viewfs://c3121/testme isDirectory:false FileStatus of viewfs://c3121/testme2 isDirectory:false <--- returns false FileStatus of / isDirectory:true [hdfs@c3121-node2 ~]$ /usr/jdk64/jdk1.8.0_112/bin/java -cp `hadoop classpath`:./hdfs-append-1.0-SNAPSHOT.jar LauncherGetFileStatus /testme2 FileStatus of viewfs://c3121/testme2/dist-copynativelibs.sh isDirectory:false FileStatus of viewfs://c3121/testme2/newfolder isDirectory:true FileStatus of /testme2 isDirectory:true <--- returns true [hdfs@c3121-node2 ~]$
Attachments
Issue Links
- is related to
-
HADOOP-17029 ViewFS does not return correct user/group and ACL
- Resolved
- relates to
-
HDFS-15289 Allow viewfs mounts with HDFS/HCFS scheme and centralized mount table
- Open
- links to