Package org.apache.hadoop.hbase.client
Class TestEnableTable
java.lang.Object
org.apache.hadoop.hbase.client.TestEnableTable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createTable
(HBaseTestingUtility testUtil, org.apache.hadoop.hbase.HTableDescriptor htd, byte[][] splitKeys) static void
deleteTable
(HBaseTestingUtility testUtil, org.apache.hadoop.hbase.TableName tableName) void
setUp()
void
tearDown()
void
We were only clearing rows that had a hregioninfo column in hbase:meta.
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
LOG
-
FAMILYNAME
-
name
-
-
Constructor Details
-
TestEnableTable
public TestEnableTable()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testDeleteForSureClearsAllTableRowsFromMeta
We were only clearing rows that had a hregioninfo column in hbase:meta. Mangled rows that were missing the hregioninfo because of error were being left behind messing up any subsequent table made with the same name. HBASE-12980- Throws:
IOException
InterruptedException
-
createTable
public static void createTable(HBaseTestingUtility testUtil, org.apache.hadoop.hbase.HTableDescriptor htd, byte[][] splitKeys) throws Exception - Throws:
Exception
-
deleteTable
public static void deleteTable(HBaseTestingUtility testUtil, org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-