From 7f7c42e33ef715efb0eeebd46b7f4e0558304bc3 Mon Sep 17 00:00:00 2001 From: Istvan Toth Date: Tue, 31 May 2022 10:52:35 +0200 Subject: [PATCH] HBASE-27069 Hbase SecureBulkload permission regression (#4475) Signed-off-by: Rajeshbabu Chintaguntla Signed-off-by: Wellington Chevreuil --- .../hadoop/hbase/regionserver/SecureBulkLoadManager.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SecureBulkLoadManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SecureBulkLoadManager.java index 5b1a3302f38..d45f5cf54d5 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SecureBulkLoadManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SecureBulkLoadManager.java @@ -398,10 +398,7 @@ public class SecureBulkLoadManager { throw new IOException("Failed to move HFile: " + p + " to " + stageP); } } - - if (StringUtils.isNotEmpty(customStaging)) { - fs.setPermission(stageP, PERM_ALL_ACCESS); - } + fs.setPermission(stageP, PERM_ALL_ACCESS); return stageP.toString(); }