public class TestRogueRSAssignment extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private static MiniHBaseCluster |
cluster |
private static org.apache.hadoop.conf.Configuration |
conf |
org.junit.rules.ExpectedException |
exception |
private static byte[] |
FAMILY |
private static int |
initialRegionCount |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.master.HMaster |
master |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestRogueRSAssignment() |
Modifier and Type | Method and Description |
---|---|
private List<org.apache.hadoop.hbase.HRegionInfo> |
assertRegionCount(org.apache.hadoop.hbase.TableName tableName,
int nregions) |
static void |
cleanupTest() |
private List<org.apache.hadoop.hbase.HRegionInfo> |
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.HRegionInfo... regions) |
void |
setup() |
static void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testReportRSWithWrongRegion()
Ignore this test, see HBASE-21421
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public final org.junit.rules.TestName name
public org.junit.rules.ExpectedException exception
private static final int initialRegionCount
private static final byte[] FAMILY
private static final HBaseTestingUtility UTIL
private static final org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.client.Admin admin
private static MiniHBaseCluster cluster
private static org.apache.hadoop.hbase.master.HMaster master
public TestRogueRSAssignment()
private static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void setupCluster() throws Exception
Exception
public static void cleanupTest() throws Exception
Exception
public void setup() throws IOException
IOException
public void testReportRSWithWrongRegion() throws Exception
Exception
private org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionServerReportRequest.Builder makeRSReportRequestWithRegions(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.HRegionInfo... regions)
private List<org.apache.hadoop.hbase.HRegionInfo> createTable(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private List<org.apache.hadoop.hbase.HRegionInfo> assertRegionCount(org.apache.hadoop.hbase.TableName tableName, int nregions) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.