Package org.apache.hadoop.hbase
Class TestHBaseMetaEdit
java.lang.Object
org.apache.hadoop.hbase.TestHBaseMetaEdit
Test being able to edit hbase:meta.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleorg.junit.rules.TestNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()voidbefore()private org.apache.hadoop.hbase.client.TableDescriptorvoidValidate whether meta table can be altered as READ only, shouldn't be allowed otherwise it will break assignment functionalities.voidSet versions, set HBASE-16213 indexed block encoding, and add a column family.
-
Field Details
-
CLASS_RULE
-
name
-
UTIL
-
-
Constructor Details
-
TestHBaseMetaEdit
public TestHBaseMetaEdit()
-
-
Method Details
-
before
- Throws:
Exception
-
after
- Throws:
Exception
-
getMetaDescriptor
private org.apache.hadoop.hbase.client.TableDescriptor getMetaDescriptor() throws org.apache.hadoop.hbase.TableNotFoundException, IOException- Throws:
org.apache.hadoop.hbase.TableNotFoundExceptionIOException
-
testEditMeta
Set versions, set HBASE-16213 indexed block encoding, and add a column family. Delete the column family. Then try to delete a core hbase:meta family (should fail). Verify they are all in place by looking at TableDescriptor AND by checking what the RegionServer sees after opening Region.- Throws:
IOException
-
testAlterMetaWithReadOnly
Validate whether meta table can be altered as READ only, shouldn't be allowed otherwise it will break assignment functionalities. See HBASE-24977.- Throws:
IOException
-