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, util
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS
Constructor and Description |
---|
IntegrationTestDDLMasterFailover() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUpCluster() |
protected Set<String> |
getColumnFamilies() |
protected Connection |
getConnection() |
protected int |
getMinServerCount() |
TableName |
getTablename() |
static void |
main(String[] args) |
int |
runTestFromCommandLine() |
protected void |
setConnection(Connection connection) |
void |
setUpCluster() |
void |
testAsUnitTest() |
protected void |
verifyTables() |
addOptions, cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, processBaseOptions, processOptions, setUp, setUpMonkey, startMonkey
addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, parseArgs, parseInt, parseLong, printUsage, printUsage, run, setConf
protected 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 void setUpCluster() throws Exception
setUpCluster
in class IntegrationTestBase
Exception
public void cleanUpCluster() throws Exception
cleanUpCluster
in class IntegrationTestBase
Exception
protected int getMinServerCount()
protected void setConnection(Connection connection)
protected Connection getConnection()
protected void verifyTables() throws IOException
IOException
public int runTestFromCommandLine() throws Exception
runTestFromCommandLine
in class IntegrationTestBase
Exception
public TableName getTablename()
getTablename
in class IntegrationTestBase
protected Set<String> getColumnFamilies()
getColumnFamilies
in class IntegrationTestBase