Skip to content

Commit 806a7ee

Browse files
authored
Revert "HBASE-27069 Hbase SecureBulkload permission regression (apache#4475)"
This reverts commit db0695d.
1 parent 0bb47f5 commit 806a7ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SecureBulkLoadManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,10 @@ public String prepareBulkLoad(final byte[] family, final String srcPath, boolean
398398
throw new IOException("Failed to move HFile: " + p + " to " + stageP);
399399
}
400400
}
401-
fs.setPermission(stageP, PERM_ALL_ACCESS);
401+
402+
if (StringUtils.isNotEmpty(customStaging)) {
403+
fs.setPermission(stageP, PERM_ALL_ACCESS);
404+
}
402405

403406
return stageP.toString();
404407
}

0 commit comments

Comments
 (0)