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
Exception
public static void cleanupTest() throws Exception
Exception
public void testCreateNamespace() throws Exception
Exception
public void testCreateSameNamespaceTwice() throws Exception
Exception
public void testCreateSystemNamespace() throws Exception
Exception
public void testCreateNamespaceWithInvalidRegionCount() throws Exception
Exception
public void testCreateNamespaceWithInvalidTableCount() throws Exception
Exception
public void testRecoveryAndDoubleExecution() throws Exception
Exception
public void testRollbackAndDoubleExecution() throws Exception
Exception
private 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
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.