Class TestRegionReplicasAreDistributed
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionReplicasAreDistributed
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final HBaseTestingUtil
private static final org.slf4j.Logger
private static final int
(package private) Map<org.apache.hadoop.hbase.ServerName,
Collection<org.apache.hadoop.hbase.client.RegionInfo>> (package private) Map<org.apache.hadoop.hbase.ServerName,
Collection<org.apache.hadoop.hbase.client.RegionInfo>> (package private) Map<org.apache.hadoop.hbase.ServerName,
Collection<org.apache.hadoop.hbase.client.RegionInfo>> (package private) Map<org.apache.hadoop.hbase.ServerName,
Collection<org.apache.hadoop.hbase.client.RegionInfo>> private static org.apache.hadoop.hbase.client.Table
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
before()
private boolean
checkAndAssertRegionDistribution
(boolean checkfourth) private static void
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
-
Field Details
-
CLASS_RULE
-
LOG
-
NB_SERVERS
- See Also:
-
table
-
HTU
-
f
-
serverVsOnlineRegions
Map<org.apache.hadoop.hbase.ServerName,Collection<org.apache.hadoop.hbase.client.RegionInfo>> serverVsOnlineRegions -
serverVsOnlineRegions2
Map<org.apache.hadoop.hbase.ServerName,Collection<org.apache.hadoop.hbase.client.RegionInfo>> serverVsOnlineRegions2 -
serverVsOnlineRegions3
Map<org.apache.hadoop.hbase.ServerName,Collection<org.apache.hadoop.hbase.client.RegionInfo>> serverVsOnlineRegions3 -
serverVsOnlineRegions4
Map<org.apache.hadoop.hbase.ServerName,Collection<org.apache.hadoop.hbase.client.RegionInfo>> serverVsOnlineRegions4
-
-
Constructor Details
-
TestRegionReplicasAreDistributed
public TestRegionReplicasAreDistributed()
-
-
Method Details
-
before
- Throws:
Exception
-
createTableDirectlyFromHTD
private static void createTableDirectlyFromHTD(org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-
getSplits
-
afterClass
- Throws:
Exception
-
getRS
-
getSecondaryRS
-
getTertiaryRS
-
testRegionReplicasCreatedAreDistributed
- Throws:
Exception
-
checkAndAssertRegionDistribution
- Throws:
Exception
-