hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xuzq (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-14580) RBF: LS command for paths shows wrong owner and permission information
Date Tue, 18 Jun 2019 12:13:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-14580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

xuzq resolved HDFS-14580.
-------------------------
    Resolution: Abandoned

> RBF: LS command for paths shows wrong owner and permission information
> ----------------------------------------------------------------------
>
>                 Key: HDFS-14580
>                 URL: https://issues.apache.org/jira/browse/HDFS-14580
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: rbf
>            Reporter: xuzq
>            Priority: Major
>              Labels: RBF
>
> RouterClientProtocol#getMountPointStatus will return wrong owner, group and permission
for the special path.
>  
> The mountPoint like this:
> {code:java}
> Mount Table Entries:
> Source        Destinations           Owner    Group   Mode       Quota/Usage
> /home         ns1 -> /home           home     home    rwxrwxrwx  NsQuota: -/-, SsQuota:
-/-
> /home/test1   ns2 -> /home/test1     htest1   htest1  rwxr-xr-x  NsQuota: -/-, SsQuota:
-/-
> /test1        ns3 -> /test1          test1    test1   rwxrwxrwx  NsQuota: -/-, SsQuota:
-/-
> {code}
>  
>  
> RouterClientProtocol#getMountPointStatus("/home/test1", HdfsFileStatus.EMPTY_NAME, false)
will return null, and it is ok.
> But RouterClientProtocol#getMountPointStatus("/home/", HdfsFileStatus.EMPTY_NAME, false)
returns 0777.
> {code:java}
> [HdfsLocatedFileStatus{path=null; isDirectory=true; modification_time=1560857909200;
access_time=1560857909200; owner=xuzq; group=supergroup; permission=rwxrwxrwx; isSymlink=false;
hasAcl=false; isEncrypted=false; isErasureCoded=false}]
> {code}
>  
> It is clear that the result should like:
>  
> {code:java}
> [HdfsLocatedFileStatus{path=/home/test1; isDirectory=true; modification_time=2; access_time=2;
owner=htest1; group=htest1; permission=rwxr-xr-x; isSymlink=false; hasAcl=false; isEncrypted=false;
isErasureCoded=false}]
> {code}
>  
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message