public class TestNamespaceAuditor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestNamespaceAuditor.CPMasterObserver |
static class |
TestNamespaceAuditor.CPRegionServerObserver |
static class |
TestNamespaceAuditor.CustomObserver |
static class |
TestNamespaceAuditor.MasterSyncObserver |
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
ADMIN |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private String |
prefix |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestNamespaceAuditor() |
Modifier and Type | Method and Description |
---|---|
static void |
before() |
void |
cleanup() |
private void |
deleteTable(org.apache.hadoop.hbase.TableName tableName) |
private org.apache.hadoop.hbase.namespace.NamespaceTableAndRegionInfo |
getNamespaceState(String namespace) |
private org.apache.hadoop.hbase.namespace.NamespaceAuditor |
getQuotaManager() |
private void |
killActiveMaster() |
static void |
tearDown() |
void |
testCloneSnapshot() |
void |
testCloneSnapshotQuotaExceed() |
void |
testDeleteTable() |
void |
testExceedTableQuotaInNamespace() |
void |
testRecreateTableWithSameNameAfterFirstTimeFailure() |
void |
testRegionMerge() |
void |
testRestoreSnapshot() |
void |
testRestoreSnapshotQuotaExceed() |
void |
testStatePreserve() |
void |
testTableOperations() |
void |
testValidQuotas() |
static void |
waitForQuotaInitialize(HBaseTestingUtility util) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.client.Admin ADMIN
public TestNamespaceAuditor()
public void cleanup() throws Exception, org.apache.zookeeper.KeeperException
Exception
org.apache.zookeeper.KeeperException
public void testTableOperations() throws Exception
Exception
public void testValidQuotas() throws Exception
Exception
public void testDeleteTable() throws Exception
Exception
public void testRegionMerge() throws Exception
Exception
public void testRecreateTableWithSameNameAfterFirstTimeFailure() throws Exception
Exception
private org.apache.hadoop.hbase.namespace.NamespaceTableAndRegionInfo getNamespaceState(String namespace) throws org.apache.zookeeper.KeeperException, IOException
org.apache.zookeeper.KeeperException
IOException
public void testStatePreserve() throws Exception
Exception
public static void waitForQuotaInitialize(HBaseTestingUtility util) throws Exception
Exception
private void killActiveMaster() throws Exception
Exception
private org.apache.hadoop.hbase.namespace.NamespaceAuditor getQuotaManager()
private void deleteTable(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
public void testExceedTableQuotaInNamespace() throws Exception
Exception
public void testCloneSnapshotQuotaExceed() throws Exception
Exception
public void testCloneSnapshot() throws Exception
Exception
public void testRestoreSnapshot() throws Exception
Exception
public void testRestoreSnapshotQuotaExceed() throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.