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 HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestMasterOperationsForRegionReplicas() |
Modifier and Type | Method and Description |
---|---|
private String |
printRegions(List<org.apache.hadoop.hbase.client.RegionInfo> regions) |
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 org.apache.hadoop.conf.Configuration conf
public org.junit.rules.TestName name
public TestMasterOperationsForRegionReplicas()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testCreateTableWithSingleReplica() throws Exception
Exception
public void testCreateTableWithMultipleReplicas() throws Exception
Exception
public void testIncompleteMetaTableReplicaInformation() throws Exception
Exception
private String printRegions(List<org.apache.hadoop.hbase.client.RegionInfo> regions)
private void validateNumberOfRowsInMeta(org.apache.hadoop.hbase.TableName table, int numRegions, org.apache.hadoop.hbase.client.Connection connection) throws IOException
IOException
private void validateFromSnapshotFromMeta(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName table, int numRegions, int numReplica, org.apache.hadoop.hbase.client.Connection connection) throws IOException
IOException
private void validateSingleRegionServerAssignment(org.apache.hadoop.hbase.client.Connection connection, int numRegions, int numReplica) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.