Class TestTableDescriptorModificationFromClient
java.lang.Object
org.apache.hadoop.hbase.master.procedure.TestTableDescriptorModificationFromClient
Verify that the HTableDescriptor is updated after addColumn(), deleteColumn() and modifyTable()
operations.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final byte[]
org.junit.rules.TestName
private static org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
Start up a mini cluster and put a small table of empty regions into it.void
setup()
void
void
void
void
void
void
void
private void
verifyTableDescriptor
(org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.TableName tableName, byte[]... families) private void
verifyTableDescriptor
(org.apache.hadoop.hbase.TableName tableName, byte[]... families)
-
Field Details
-
CLASS_RULE
-
name
-
TEST_UTIL
-
TABLE_NAME
-
FAMILY_0
-
FAMILY_1
-
-
Constructor Details
-
TestTableDescriptorModificationFromClient
-
-
Method Details
-
beforeAllTests
Start up a mini cluster and put a small table of empty regions into it.- Throws:
Exception
-
setup
-
afterAllTests
- Throws:
Exception
-
testModifyTable
- Throws:
IOException
-
testAddColumn
- Throws:
IOException
-
testAddSameColumnFamilyTwice
- Throws:
IOException
-
testModifyColumnFamily
- Throws:
IOException
-
testModifyNonExistingColumnFamily
- Throws:
IOException
-
testDeleteColumn
- Throws:
IOException
-
testDeleteSameColumnFamilyTwice
- Throws:
IOException
-
verifyTableDescriptor
private void verifyTableDescriptor(org.apache.hadoop.hbase.TableName tableName, byte[]... families) throws IOException - Throws:
IOException
-
verifyTableDescriptor
private void verifyTableDescriptor(org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.TableName tableName, byte[]... families)
-