Package org.apache.hadoop.hbase.master
Class TestMasterOperationsForRegionReplicas
java.lang.Object
org.apache.hadoop.hbase.master.TestMasterOperationsForRegionReplicas
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
private static org.apache.hadoop.hbase.client.Connection
private static final org.slf4j.Logger
org.junit.rules.TestName
private static int
private static final StartMiniClusterOption
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertRegionStateNotNull
(List<org.apache.hadoop.hbase.client.RegionInfo> hris, int numRegions, int numReplica) private static void
static void
static void
void
void
void
private void
validateFromSnapshotFromMeta
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName table, int numRegions, int numReplica, org.apache.hadoop.hbase.client.Connection connection) private void
validateNumberOfRowsInMeta
(org.apache.hadoop.hbase.TableName table, int numRegions, org.apache.hadoop.hbase.client.Connection connection) private void
validateSingleRegionServerAssignment
(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(HBaseTestingUtility 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
-