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

regions opened in read only mode failed when replaying the edits due to permission denied WRITE for regionDir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • None
    • None
    • regionserver
    • None
    • Patch

    Description

      Open region in read only mode, [HbaseTableSnapshotInputFormat], if RegionDir has 

      recovered edits files under, (filesUnderRootDir),  when read-only region read the content, it will try to delete the content of recovered edits,  including filesUnderRootDir part

      // code placeholder
      for (Path file : filesUnderRootDir) {
        if (!rootFS.delete(file, false)) {
          LOG.error("Failed delete of {}", file);
        } else {
          LOG.debug("Deleted recovered.edits file={}", file);
        }
      }
      

      however, read-only mode usually no WRITE access to delete it.

      // code placeholder
      org.apache.hadoop.security.AccessControlException: Permission denied: user=xxxx, access=WRITE, inode="/hbase/data/default/TABLENAME/d6777e449ed4d137b6a2f735653a7c3a/recovered.edits":hbase:hbase:drwxr-xr-x
      

      it will throw excption and failed

       

       

       

      Attachments

        Activity

          People

            rebornHuan huan
            rebornHuan huan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: