You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "lujie (Jira)" <ji...@apache.org> on 2022/05/14 10:49:00 UTC
[jira] [Created] (HBASE-27035) failed to set file permission when node crash
lujie created HBASE-27035:
-----------------------------
Summary: failed to set file permission when node crash
Key: HBASE-27035
URL: https://issues.apache.org/jira/browse/HBASE-27035
Project: HBase
Issue Type: Bug
Reporter: lujie
in SecureBulkLoadManager#secureBulkLoadHFiles, we have code like that:
{code:java}
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);
}
} {code}
if process crashbefore setpermission, and reboot, we can't setpermission again.
we should make this code like SnapshotScannerHDFSAclHelper#setCommonDirectoryPermission
{code:java}
for (Path path : paths) {
createDirIfNotExist(path);
fs.setPermission(path, new FsPermission(
conf.get(COMMON_DIRECTORY_PERMISSION, COMMON_DIRECTORY_PERMISSION_DEFAULT)));
} {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)