Package org.apache.hadoop.hbase.master
Class TestMasterOperationsForRegionReplicas
java.lang.Object
org.apache.hadoop.hbase.master.TestMasterOperationsForRegionReplicas
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.hbase.client.Connectionprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static intprivate static final StartTestingClusterOptionprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertRegionStateNotNull(List<org.apache.hadoop.hbase.client.RegionInfo> hris, int numRegions, int numReplica) private static voidstatic voidstatic voidvoidvoidvoidprivate voidvalidateFromSnapshotFromMeta(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName table, int numRegions, int numReplica, org.apache.hadoop.hbase.client.Connection connection) private voidvalidateNumberOfRowsInMeta(org.apache.hadoop.hbase.TableName table, int numRegions, org.apache.hadoop.hbase.client.Connection connection) private voidvalidateSingleRegionServerAssignment(org.apache.hadoop.hbase.client.Connection connection, int numRegions, int numReplica)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
CONNECTION
-
ADMIN
-
numSlaves
-
option
-
conf
-
name
-
-
Constructor Details
-
TestMasterOperationsForRegionReplicas
-
-
Method Details
-
setupBeforeClass
- Throws:
Exception
-
resetConnections
- Throws:
IOException
-
tearDownAfterClass
- Throws:
Exception
-
testCreateTableWithSingleReplica
- Throws:
Exception
-
testCreateTableWithMultipleReplicas
- Throws:
Exception
-
assertRegionStateNotNull
private void assertRegionStateNotNull(List<org.apache.hadoop.hbase.client.RegionInfo> hris, int numRegions, int numReplica) -
testIncompleteMetaTableReplicaInformation
- Throws:
Exception
-
validateNumberOfRowsInMeta
private void validateNumberOfRowsInMeta(org.apache.hadoop.hbase.TableName table, int numRegions, org.apache.hadoop.hbase.client.Connection connection) throws IOException - Throws:
IOException
-
validateFromSnapshotFromMeta
private void validateFromSnapshotFromMeta(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName table, int numRegions, int numReplica, org.apache.hadoop.hbase.client.Connection connection) throws IOException - Throws:
IOException
-
validateSingleRegionServerAssignment
private void validateSingleRegionServerAssignment(org.apache.hadoop.hbase.client.Connection connection, int numRegions, int numReplica) throws IOException - Throws:
IOException
-