Class TestRegionReplicasWithRestartScenarios
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionReplicasWithRestartScenarios
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final HBaseTestingUtilityprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final intprivate org.apache.hadoop.hbase.client.Tableprivate org.apache.hadoop.hbase.TableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()static voidprivate voidprivate voidassertReplicaDistributed(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions) voidbefore()static voidprivate booleancheckDuplicates(Collection<org.apache.hadoop.hbase.regionserver.HRegion> onlineRegions3) private static org.apache.hadoop.hbase.client.TablecreateTableDirectlyFromHTD(org.apache.hadoop.hbase.TableName tableName) private org.apache.hadoop.hbase.regionserver.HRegionServergetRS()private org.apache.hadoop.hbase.regionserver.HRegionServerprivate static byte[][]getSplits(int numRegions) private org.apache.hadoop.hbase.regionserver.HRegionServervoidvoid
-
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
-