You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by gx...@apache.org on 2020/02/26 11:32:18 UTC

[hbase] branch HBASE-23896 created (now 796f4b3)

This is an automated email from the ASF dual-hosted git repository.

gxcheng pushed a change to branch HBASE-23896
in repository https://gitbox.apache.org/repos/asf/hbase.git.


      at 796f4b3  HBASE-23896 Snapshot owner cannot delete snapshot when ACL is enabled and Kerberos is not enabled

This branch includes the following new commits:

     new 796f4b3  HBASE-23896 Snapshot owner cannot delete snapshot when ACL is enabled and Kerberos is not enabled

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[hbase] 01/01: HBASE-23896 Snapshot owner cannot delete snapshot when ACL is enabled and Kerberos is not enabled

Posted by gx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gxcheng pushed a commit to branch HBASE-23896
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 796f4b3a1f3887cb0799344fb67bf64b676ba41c
Author: Guangxu Cheng <gu...@gmail.com>
AuthorDate: Wed Feb 26 19:31:36 2020 +0800

    HBASE-23896 Snapshot owner cannot delete snapshot when ACL is enabled and Kerberos is not enabled
---
 .../java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java
index 8074a2c..3567a0b 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java
@@ -635,7 +635,7 @@ public class SnapshotManager extends MasterProcedureManager implements Stoppable
       builder.setVersion(SnapshotDescriptionUtils.SNAPSHOT_LAYOUT_VERSION);
     }
     RpcServer.getRequestUser().ifPresent(user -> {
-      if (User.isHBaseSecurityEnabled(master.getConfiguration())) {
+      if (AccessChecker.isAuthorizationSupported(master.getConfiguration())) {
         builder.setOwner(user.getShortName());
       }
     });