Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
None
-
None
-
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