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
Exceptionorg.apache.zookeeper.KeeperExceptionpublic void testTableOperations() throws Exception
Exceptionpublic void testValidQuotas() throws Exception
Exceptionpublic void testDeleteTable() throws Exception
Exceptionpublic void testRegionMerge() throws Exception
Exceptionpublic void testRecreateTableWithSameNameAfterFirstTimeFailure() throws Exception
Exceptionprivate org.apache.hadoop.hbase.namespace.NamespaceTableAndRegionInfo getNamespaceState(String namespace) throws org.apache.zookeeper.KeeperException, IOException
org.apache.zookeeper.KeeperExceptionIOExceptionpublic void testStatePreserve() throws Exception
Exceptionpublic static void waitForQuotaInitialize(HBaseTestingUtility util) throws Exception
Exceptionprivate void killActiveMaster() throws Exception
Exceptionprivate org.apache.hadoop.hbase.namespace.NamespaceAuditor getQuotaManager()
private void deleteTable(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionpublic void testExceedTableQuotaInNamespace() throws Exception
Exceptionpublic void testCloneSnapshotQuotaExceed() throws Exception
Exceptionpublic void testCloneSnapshot() throws Exception
Exceptionpublic void testRestoreSnapshot() throws Exception
Exceptionpublic void testRestoreSnapshotQuotaExceed() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.