Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27035

failed to set file permission when node crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

       in SecureBulkLoadManager#secureBulkLoadHFiles, we have code like that:

      for(Pair<byte[], String> el: familyPaths) {
                    Path stageFamily = new Path(bulkToken, Bytes.toString(el.getFirst()));
                    if(!fs.exists(stageFamily)) {
                      fs.mkdirs(stageFamily);
                      fs.setPermission(stageFamily, PERM_ALL_ACCESS);
                   }
      } 

      if process crashbefore setpermission, and reboot, we can't setpermission again.

       

      we should make this code like SnapshotScannerHDFSAclHelper#setCommonDirectoryPermission

       

       for (Path path : paths) {
            createDirIfNotExist(path);
            fs.setPermission(path, new FsPermission(
                conf.get(COMMON_DIRECTORY_PERMISSION, COMMON_DIRECTORY_PERMISSION_DEFAULT)))
      } 

       

       

       

       

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            xiaoheipangzi lujie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: