You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Srinivasu Majeti (Jira)" <ji...@apache.org> on 2020/06/01 11:08:00 UTC

[jira] [Commented] (HDFS-15370) listStatus and getFileStatus behave inconsistent in the case of ViewFs implementation for isDirectory

    [ https://issues.apache.org/jira/browse/HDFS-15370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17120934#comment-17120934 ] 

Srinivasu Majeti commented on HDFS-15370:
-----------------------------------------

Thank you for the quick clarification [~umamaheswararao] . Can we take this up for further review and have it resolved as we see Ambari Files View is blocked due to this for ViewFS . 

CC [~arpaga]

> listStatus and getFileStatus behave inconsistent in the case of ViewFs implementation for isDirectory
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-15370
>                 URL: https://issues.apache.org/jira/browse/HDFS-15370
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>    Affects Versions: 3.0.0, 3.1.0
>            Reporter: Srinivasu Majeti
>            Priority: Major
>              Labels: viewfs
>
> 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.
> {code:java}
> [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 ~]$ {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org