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

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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • None
    • None
    • rbf

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            xuzq_zander ZanderXu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment