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/04/23 03:14:24 UTC
[hbase] branch branch-2.2 updated: HBASE-23896 Snapshot owner
cannot delete snapshot when ACL is enabled and Kerberos is not enabled
(Addendum)
This is an automated email from the ASF dual-hosted git repository.
gxcheng pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.2 by this push:
new 333454d HBASE-23896 Snapshot owner cannot delete snapshot when ACL is enabled and Kerberos is not enabled (Addendum)
333454d is described below
commit 333454d177bbec8791ebd51eaafc7c90ed9e8564
Author: Guangxu Cheng <gu...@gmail.com>
AuthorDate: Wed Apr 22 20:45:58 2020 +0800
HBASE-23896 Snapshot owner cannot delete snapshot when ACL is enabled and Kerberos is not enabled (Addendum)
---
.../java/org/apache/hadoop/hbase/client/SnapshotWithAclTestBase.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/SnapshotWithAclTestBase.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/SnapshotWithAclTestBase.java
index e694e9b..ccf8752 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/SnapshotWithAclTestBase.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/SnapshotWithAclTestBase.java
@@ -22,7 +22,6 @@ import java.util.List;
import java.util.regex.Pattern;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.Coprocessor;
-import org.apache.hadoop.hbase.HBaseCommonTestingUtility;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.coprocessor.CoprocessorHost;
@@ -250,9 +249,9 @@ public abstract class SnapshotWithAclTestBase extends SecureTestUtil {
@Test
public void testDeleteSnapshot() throws Exception {
- String testSnapshotName = HBaseCommonTestingUtility.getRandomUUID().toString();
+ String testSnapshotName = TEST_UTIL.getRandomUUID().toString();
verifyAllowed(new AccessSnapshotAction(testSnapshotName), USER_OWNER);
- verifyDenied(new AccessSnapshotAction(HBaseCommonTestingUtility.getRandomUUID().toString()),
+ verifyDenied(new AccessSnapshotAction(TEST_UTIL.getRandomUUID().toString()),
USER_RO, USER_RW, USER_NONE);
List<SnapshotDescription> snapshotDescriptions = TEST_UTIL.getAdmin().listSnapshots(
Pattern.compile(testSnapshotName));