public class TestRegionReplicasWithRestartScenarios extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
f |
private static HBaseTestingUtility |
HTU |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
NB_SERVERS |
private org.apache.hadoop.hbase.client.Table |
table |
private org.apache.hadoop.hbase.TableName |
tableName |
| Constructor and Description |
|---|
TestRegionReplicasWithRestartScenarios() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
static void |
afterClass() |
private void |
assertReplicaDistributed() |
private void |
assertReplicaDistributed(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions) |
void |
before() |
static void |
beforeClass() |
private boolean |
checkDuplicates(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions3) |
private static org.apache.hadoop.hbase.client.Table |
createTableDirectlyFromHTD(org.apache.hadoop.hbase.TableName tableName) |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
getRS() |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
getSecondaryRS() |
private static byte[][] |
getSplits(int numRegions) |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
getTertiaryRS() |
void |
testRegionReplicasCreated() |
void |
testWhenRestart() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
private static final int NB_SERVERS
private org.apache.hadoop.hbase.client.Table table
private org.apache.hadoop.hbase.TableName tableName
private static final HBaseTestingUtility HTU
private static final byte[] f
public TestRegionReplicasWithRestartScenarios()
public static void beforeClass() throws Exception
Exceptionpublic void before() throws IOException
IOExceptionpublic void after() throws IOException
IOExceptionprivate static org.apache.hadoop.hbase.client.Table createTableDirectlyFromHTD(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionprivate static byte[][] getSplits(int numRegions)
public static void afterClass() throws Exception
Exceptionprivate org.apache.hadoop.hbase.regionserver.HRegionServer getRS()
private org.apache.hadoop.hbase.regionserver.HRegionServer getSecondaryRS()
private org.apache.hadoop.hbase.regionserver.HRegionServer getTertiaryRS()
public void testRegionReplicasCreated() throws Exception
Exceptionpublic void testWhenRestart() throws Exception
Exceptionprivate void assertReplicaDistributed() throws Exception
Exceptionprivate void assertReplicaDistributed(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions) throws Exception
Exceptionprivate boolean checkDuplicates(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions3) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.