Package org.apache.hadoop.hbase.client
Class TestEnableTable
java.lang.Object
org.apache.hadoop.hbase.client.TestEnableTable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateTable(HBaseTestingUtility testUtil, org.apache.hadoop.hbase.HTableDescriptor htd, byte[][] splitKeys) static voiddeleteTable(HBaseTestingUtility testUtil, org.apache.hadoop.hbase.TableName tableName) voidsetUp()voidtearDown()voidWe 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:
IOExceptionInterruptedException
-
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
-