public class IntegrationTestDDLMasterFailover extends IntegrationTestBase
This test should be run by the hbase user since it invokes hbck at the end
Usage: hbase org.apache.hadoop.hbase.IntegrationTestDDLMasterFailover -Dhbase.IntegrationTestDDLMasterFailover.runtime=1200000 -Dhbase.IntegrationTestDDLMasterFailover.numThreads=20 -Dhbase.IntegrationTestDDLMasterFailover.numRegions=50 --monkey masterKilling
| Modifier and Type | Field and Description |
|---|---|
protected HBaseCluster |
cluster |
protected Connection |
connection |
protected AtomicBoolean |
create_table |
protected static int |
DEFAULT_NUM_REGIONS |
protected static int |
DEFAULT_NUM_THREADS |
protected static long |
DEFAULT_RUN_TIME |
protected static String |
NUM_REGIONS_KEY |
protected static String |
NUM_THREADS_KEY |
protected int |
numRegions |
protected int |
numThreads |
protected static String |
RUN_TIME_KEY
A soft limit on how long we should run
|
protected AtomicBoolean |
running |
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, utilcmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION| Constructor and Description |
|---|
IntegrationTestDDLMasterFailover() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUpCluster() |
protected Set<String> |
getColumnFamilies()
Provides the name of the CFs that are protected from random Chaos monkey activity (alter)
|
protected Connection |
getConnection() |
protected int |
getMinServerCount() |
TableName |
getTablename()
Provides the name of the table that is protected from random Chaos monkey activity
|
static void |
main(String[] args) |
int |
runTestFromCommandLine() |
protected void |
setConnection(Connection connection) |
void |
setUpCluster() |
void |
testAsUnitTest() |
protected void |
verifyNamespaces() |
protected void |
verifyTables() |
addOptions, cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, processBaseOptions, processOptions, setUp, setUpMonkey, startMonkeyaddOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfprotected static final long DEFAULT_RUN_TIME
protected static final int DEFAULT_NUM_THREADS
protected static final int DEFAULT_NUM_REGIONS
protected HBaseCluster cluster
protected Connection connection
protected static final String RUN_TIME_KEY
protected static final String NUM_THREADS_KEY
protected static final String NUM_REGIONS_KEY
protected AtomicBoolean running
protected AtomicBoolean create_table
protected int numThreads
protected int numRegions
public IntegrationTestDDLMasterFailover()
public void setUpCluster() throws Exception
setUpCluster in class IntegrationTestBaseExceptionpublic void cleanUpCluster() throws Exception
cleanUpCluster in class IntegrationTestBaseExceptionprotected int getMinServerCount()
protected void setConnection(Connection connection)
protected Connection getConnection()
protected void verifyNamespaces() throws IOException
IOExceptionprotected void verifyTables() throws IOException
IOExceptionpublic void testAsUnitTest() throws Exception
Exceptionpublic int runTestFromCommandLine() throws Exception
runTestFromCommandLine in class IntegrationTestBaseExceptionpublic TableName getTablename()
IntegrationTestBasegetTablename in class IntegrationTestBaseprotected Set<String> getColumnFamilies()
IntegrationTestBasegetColumnFamilies in class IntegrationTestBaseCopyright © 2007–2019 Cloudera. All rights reserved.