Package org.apache.hadoop.hbase
Class TestMetaTableForReplica
java.lang.Object
org.apache.hadoop.hbase.TestMetaTableForReplica
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestMetaTableForReplica
extends Object
Test
TestMetaTableForReplica.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Connectionprivate static final org.slf4j.Loggerprivate static Fieldprivate static Objectprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprivate static voidprivate static voidsetStaticFinalField(Field field, Object newValue) A helper method to modify a static final field using reflection.private voidprivate voidvoidvoidprivate voidvoid
-
Field Details
-
LOG
-
UTIL
-
connection
-
metaTableName
-
originalMetaTableName
-
-
Constructor Details
-
TestMetaTableForReplica
public TestMetaTableForReplica()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testStateOfMetaForReplica
-
testMetaTableNameForReplicaWithoutSuffix
- Throws:
IOException
-
testNameOfMetaForReplica
-
testGetNonExistentRegionFromMetaFromReplica
- Throws:
IOException
-
testGetExistentRegionFromMetaFromReplica
- Throws:
IOException
-
testMetaTableNameForReplicaWithSuffix
- Throws:
Exception
-
setDefaultMetaTableName
- Throws:
Exception
-
setStaticFinalField
A helper method to modify a static final field using reflection. This is necessary for testing code that reads a configuration only once during class loading.- Parameters:
field- The field to modify.newValue- The new value to set.- Throws:
Exception- if reflection fails.
-