public class TestUnexpectedStateException extends Object
UnexpectedStateException
, we'd spin on
the ProcedureExecutor consuming CPU and filling logs. Test new back-off facility.Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
REGIONS |
private org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestUnexpectedStateException() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
private long |
getUnassignTimeout(org.apache.hbase.thirdparty.com.google.gson.JsonParser parser,
String proceduresAsJSON) |
private org.apache.hadoop.hbase.client.RegionInfo |
pickArbitraryRegion(org.apache.hadoop.hbase.client.Admin admin) |
void |
testUnableToAssign()
Manufacture a state that will throw UnexpectedStateException.
|
public static final HBaseClassTestRule CLASS_RULE
public final org.junit.rules.TestName name
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] FAMILY
private org.apache.hadoop.hbase.TableName tableName
private static final int REGIONS
public TestUnexpectedStateException()
public static void beforeClass() throws Exception
Exception
public static void afterClass() throws Exception
Exception
public void before() throws IOException
IOException
private org.apache.hadoop.hbase.client.RegionInfo pickArbitraryRegion(org.apache.hadoop.hbase.client.Admin admin) throws IOException
IOException
public void testUnableToAssign() throws Exception
Exception
private long getUnassignTimeout(org.apache.hbase.thirdparty.com.google.gson.JsonParser parser, String proceduresAsJSON) throws Exception
proceduresAsJSON
- This is String returned by admin.getProcedures call... an array of
Procedures as JSON.Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.