public class TestMasterOperationsForRegionReplicas extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hadoop.hbase.client.Admin |
ADMIN |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.hbase.client.Connection |
CONNECTION |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
numSlaves |
private static StartMiniClusterOption |
option |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestMasterOperationsForRegionReplicas() |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertRegionStateNotNull(List<org.apache.hadoop.hbase.client.RegionInfo> hris,
int numRegions,
int numReplica) |
private static void |
resetConnections() |
static void |
setupBeforeClass() |
static void |
tearDownAfterClass() |
void |
testCreateTableWithMultipleReplicas() |
void |
testCreateTableWithSingleReplica() |
void |
testIncompleteMetaTableReplicaInformation() |
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) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.client.Connection CONNECTION
private static org.apache.hadoop.hbase.client.Admin ADMIN
private static int numSlaves
private static final StartMiniClusterOption option
private static org.apache.hadoop.conf.Configuration conf
public org.junit.rules.TestName name
public TestMasterOperationsForRegionReplicas()
public static void setupBeforeClass() throws Exception
Exceptionprivate static void resetConnections() throws IOException
IOExceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testCreateTableWithSingleReplica() throws Exception
Exceptionpublic void testCreateTableWithMultipleReplicas() throws Exception
Exceptionprivate void assertRegionStateNotNull(List<org.apache.hadoop.hbase.client.RegionInfo> hris, int numRegions, int numReplica)
public void testIncompleteMetaTableReplicaInformation() throws Exception
Exceptionprivate void validateNumberOfRowsInMeta(org.apache.hadoop.hbase.TableName table, int numRegions, org.apache.hadoop.hbase.client.Connection connection) throws IOException
IOExceptionprivate void validateFromSnapshotFromMeta(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName table, int numRegions, int numReplica, org.apache.hadoop.hbase.client.Connection connection) throws IOException
IOExceptionprivate void validateSingleRegionServerAssignment(org.apache.hadoop.hbase.client.Connection connection, int numRegions, int numReplica) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.