public class TestCreateNamespaceProcedure extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
protected static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestCreateNamespaceProcedure() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanupTest() |
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> |
getMasterProcedureExecutor() |
void |
setup() |
static void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testCreateNamespace() |
void |
testCreateNamespaceWithInvalidRegionCount() |
void |
testCreateNamespaceWithInvalidTableCount() |
void |
testCreateSameNamespaceTwice() |
void |
testCreateSystemNamespace() |
void |
testRecoveryAndDoubleExecution() |
void |
testRollbackAndDoubleExecution() |
private void |
validateNamespaceCreated(org.apache.hadoop.hbase.NamespaceDescriptor nsd) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility UTIL
public TestCreateNamespaceProcedure()
private static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void setupCluster() throws Exception
Exceptionpublic static void cleanupTest() throws Exception
Exceptionpublic void testCreateNamespace() throws Exception
Exceptionpublic void testCreateSameNamespaceTwice() throws Exception
Exceptionpublic void testCreateSystemNamespace() throws Exception
Exceptionpublic void testCreateNamespaceWithInvalidRegionCount() throws Exception
Exceptionpublic void testCreateNamespaceWithInvalidTableCount() throws Exception
Exceptionpublic void testRecoveryAndDoubleExecution() throws Exception
Exceptionpublic void testRollbackAndDoubleExecution() throws Exception
Exceptionprivate org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> getMasterProcedureExecutor()
private void validateNamespaceCreated(org.apache.hadoop.hbase.NamespaceDescriptor nsd) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.