Description
RouterClientProtocol#getMountPointStatus will return wrong owner, group and permission for the special path.
The mountPoint like this:
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: -/-
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.
[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}]
It is clear that the result should like:
[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}]