Class TestRogueRSAssignment
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestRogueRSAssignment
Tests to verify master/ assignment manager functionality against rogue RS
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private static SingleProcessHBaseCluster
private static final org.apache.hadoop.conf.Configuration
org.junit.rules.ExpectedException
private static final byte[]
private static final int
private static final org.slf4j.Logger
private static org.apache.hadoop.hbase.master.HMaster
final org.junit.rules.TestName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate List<org.apache.hadoop.hbase.client.RegionInfo>
assertRegionCount
(org.apache.hadoop.hbase.TableName tableName, int nregions) static void
private List<org.apache.hadoop.hbase.client.RegionInfo>
createTable
(org.apache.hadoop.hbase.TableName tableName) private org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionServerReportRequest.Builder
makeRSReportRequestWithRegions
(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.client.RegionInfo... regions) void
setup()
static void
private static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
tearDown()
void
Ignore this test, see HBASE-21421
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
exception
-
initialRegionCount
- See Also:
-
FAMILY
-
UTIL
-
conf
-
admin
-
cluster
-
master
-
-
Constructor Details
-
TestRogueRSAssignment
public TestRogueRSAssignment()
-
-
Method Details
-
setupConf
-
setupCluster
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
setup
- Throws:
IOException
-
tearDown
- Throws:
Exception
-
testReportRSWithWrongRegion
Ignore this test, see HBASE-21421- Throws:
Exception
-
makeRSReportRequestWithRegions
private org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionServerReportRequest.Builder makeRSReportRequestWithRegions(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.client.RegionInfo... regions) -
createTable
private List<org.apache.hadoop.hbase.client.RegionInfo> createTable(org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
assertRegionCount
private List<org.apache.hadoop.hbase.client.RegionInfo> assertRegionCount(org.apache.hadoop.hbase.TableName tableName, int nregions) throws Exception - Throws:
Exception
-