Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14580

RBF: LS command for paths shows wrong owner and permission information

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Abandoned
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: rbf
    • Labels:

      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}]
      

       

       

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xuzq_zander xuzq
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: