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

DFSClient#mkdirs and DFSClient#primitiveMkdir should use default directory permission

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 3.0.0-alpha1, 2.10.2
    • None
    • None
    • Incompatible change, Reviewed
    • If the caller does not supply a permission, DFSClient#mkdirs and DFSClient#primitiveMkdir will create a new directory with the default directory permission 00777 now, instead of 00666.

    Description

      These 2 DFSClient methods should use default directory permission to create a directory.

        public boolean mkdirs(String src, FsPermission permission,
            boolean createParent) throws IOException {
          if (permission == null) {
            permission = FsPermission.getDefault();
          }
      
        public boolean primitiveMkdir(String src, FsPermission absPermission, 
          boolean createParent)
          throws IOException {
          checkOpen();
          if (absPermission == null) {
            absPermission = 
              FsPermission.getDefault().applyUMask(dfsClientConf.uMask);
          } 
      

      Attachments

        1. HDFS-10650.001.patch
          5 kB
          John Zhuge
        2. HDFS-10650.002.patch
          5 kB
          John Zhuge

        Issue Links

          Activity

            People

              jzhuge John Zhuge
              jzhuge John Zhuge
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: