public class IntegrationTestMTTR extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
IntegrationTestMTTR.ActionCallable |
(package private) static class |
IntegrationTestMTTR.AdminCallable
Callable that will keep going to the master for cluster status.
|
static class |
IntegrationTestMTTR.LoadCallable
Callable used to make sure the cluster has some load on it.
|
(package private) static class |
IntegrationTestMTTR.PutCallable
Callable that will keep putting small amounts of data into a table until the future supplied
returns.
|
(package private) static class |
IntegrationTestMTTR.ScanCallable
Callable that will keep scanning for small amounts of data until the supplied future returns.
|
(package private) static class |
IntegrationTestMTTR.TimingCallable
Base class for actions that need to record the time needed to recover from a failure.
|
private static class |
IntegrationTestMTTR.TimingResult
Class to store results of TimingCallable.
|
Modifier and Type | Field and Description |
---|---|
private static ExecutorService |
executorService
Executor for test threads.
|
private static byte[] |
FAMILY
Constants.
|
private static org.apache.hadoop.hbase.TableName |
loadTableName |
private static LoadTestTool |
loadTool
The load test tool used to create load and make sure that WALs aren't empty.
|
private static org.slf4j.Logger |
LOG |
private static Action |
moveMetaRegionsAction |
private static Action |
moveRegionAction |
private static Action |
restartMasterAction |
private static Action |
restartMetaAction |
private static Action |
restartRSAction
All of the chaos monkey actions used.
|
private static long |
SLEEP_TIME_DEFAULT |
private static String |
SLEEP_TIME_KEY |
private static long |
sleepTime |
private static org.apache.hadoop.hbase.TableName |
tableName
Configurable table names.
|
private static IntegrationTestingUtility |
util
Util to get at the cluster.
|
Constructor and Description |
---|
IntegrationTestMTTR() |
Modifier and Type | Method and Description |
---|---|
static void |
after() |
void |
run(Callable<Boolean> monkeyCallable,
String testName) |
static void |
setUp() |
private static void |
setupActions() |
private static void |
setupTables() |
private static boolean |
tablesOnMaster() |
void |
testKillRsHoldingMeta() |
void |
testMoveMeta() |
void |
testMoveRegion() |
void |
testRestartMaster() |
void |
testRestartRsHoldingTable() |
private static final byte[] FAMILY
private static final org.slf4j.Logger LOG
private static long sleepTime
private static final String SLEEP_TIME_KEY
private static final long SLEEP_TIME_DEFAULT
private static org.apache.hadoop.hbase.TableName tableName
private static org.apache.hadoop.hbase.TableName loadTableName
private static IntegrationTestingUtility util
private static ExecutorService executorService
private static Action restartRSAction
private static Action restartMetaAction
private static Action moveMetaRegionsAction
private static Action moveRegionAction
private static Action restartMasterAction
private static LoadTestTool loadTool
public IntegrationTestMTTR()
private static void setupActions() throws IOException
IOException
private static void setupTables() throws IOException
IOException
public static void after() throws IOException
IOException
private static boolean tablesOnMaster()
public void testRestartRsHoldingTable() throws Exception
Exception
public void testKillRsHoldingMeta() throws Exception
Exception
public void testMoveMeta() throws Exception
Exception
public void testMoveRegion() throws Exception
Exception
public void testRestartMaster() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.