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
Exception
private static void resetConnections() throws IOException
IOException
public static void tearDownAfterClass() throws Exception
Exception
public void testCreateTableWithSingleReplica() throws Exception
Exception
public void testCreateTableWithMultipleReplicas() throws Exception
Exception
private void assertRegionStateNotNull(List<org.apache.hadoop.hbase.client.RegionInfo> hris, int numRegions, int numReplica)
public void testIncompleteMetaTableReplicaInformation() throws Exception
Exception
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–2020 The Apache Software Foundation. All rights reserved.