Class TestRegionReplicasWithRestartScenarios
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionReplicasWithRestartScenarios
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final HBaseTestingUtil
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final int
private org.apache.hadoop.hbase.client.Table
private org.apache.hadoop.hbase.TableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
static void
private void
private void
assertReplicaDistributed
(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions) void
before()
static void
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
private static byte[][]
getSplits
(int numRegions) private org.apache.hadoop.hbase.regionserver.HRegionServer
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
NB_SERVERS
- See Also:
-
table
-
tableName
-
HTU
-
f
-
-
Constructor Details
-
TestRegionReplicasWithRestartScenarios
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
before
- Throws:
IOException
-
after
- Throws:
IOException
-
createTableDirectlyFromHTD
private static org.apache.hadoop.hbase.client.Table createTableDirectlyFromHTD(org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-
getSplits
-
afterClass
- Throws:
Exception
-
getRS
-
getSecondaryRS
-
getTertiaryRS
-
testRegionReplicasCreated
- Throws:
Exception
-
testWhenRestart
- Throws:
Exception
-
assertReplicaDistributed
- Throws:
Exception
-
assertReplicaDistributed
private void assertReplicaDistributed(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions) throws Exception - Throws:
Exception
-
checkDuplicates
private boolean checkDuplicates(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions3) throws Exception - Throws:
Exception
-