Package org.apache.hadoop.hbase
Class TestHBaseMetaEdit
java.lang.Object
org.apache.hadoop.hbase.TestHBaseMetaEdit
Test being able to edit hbase:meta.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
org.junit.rules.TestName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
void
before()
private org.apache.hadoop.hbase.client.TableDescriptor
void
Validate whether meta table can be altered as READ only, shouldn't be allowed otherwise it will break assignment functionalities.void
Set 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.TableNotFoundException
IOException
-
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
-