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 org.apache.hadoop.hbase.client.Connection | 
connection  | 
protected AtomicBoolean | 
create_table  | 
protected static int | 
DEFAULT_NUM_REGIONS  | 
protected static int | 
DEFAULT_NUM_THREADS  | 
protected static long | 
DEFAULT_RUN_TIME  | 
(package private) ConcurrentHashMap<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.client.TableDescriptor> | 
deletedTables  | 
(package private) ConcurrentHashMap<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.client.TableDescriptor> | 
disabledTables  | 
(package private) ConcurrentHashMap<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.client.TableDescriptor> | 
enabledTables  | 
private boolean | 
keepObjectsAtTheEnd  | 
private static org.slf4j.Logger | 
LOG  | 
(package private) ConcurrentHashMap<String,org.apache.hadoop.hbase.NamespaceDescriptor> | 
namespaceMap  | 
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  | 
private static int | 
SERVER_COUNT  | 
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util| Constructor and Description | 
|---|
IntegrationTestDDLMasterFailover()  | 
| Modifier and Type | Method and Description | 
|---|---|
private void | 
checkException(List<IntegrationTestDDLMasterFailover.Worker> workers)  | 
void | 
cleanUpCluster()  | 
protected Set<String> | 
getColumnFamilies()
Provides the name of the CFs that are protected from random Chaos monkey activity (alter) 
 | 
protected org.apache.hadoop.hbase.client.Connection | 
getConnection()  | 
protected int | 
getMinServerCount()  | 
org.apache.hadoop.hbase.TableName | 
getTablename()
Provides the name of the table that is protected from random Chaos monkey activity 
 | 
static void | 
main(String[] args)  | 
private int | 
runTest()  | 
int | 
runTestFromCommandLine()  | 
protected void | 
setConnection(org.apache.hadoop.hbase.client.Connection connection)  | 
void | 
setUpCluster()  | 
void | 
testAsUnitTest()  | 
protected void | 
verifyNamespaces()  | 
protected void | 
verifyTables()  | 
addOptions, cleanUp, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, processOptions, setUp, setUpMonkey, startMonkeyaddOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfprivate static final org.slf4j.Logger LOG
private static final int SERVER_COUNT
protected static final long DEFAULT_RUN_TIME
protected static final int DEFAULT_NUM_THREADS
protected static final int DEFAULT_NUM_REGIONS
private boolean keepObjectsAtTheEnd
protected HBaseCluster cluster
protected org.apache.hadoop.hbase.client.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
ConcurrentHashMap<String,org.apache.hadoop.hbase.NamespaceDescriptor> namespaceMap
ConcurrentHashMap<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.client.TableDescriptor> enabledTables
ConcurrentHashMap<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.client.TableDescriptor> disabledTables
ConcurrentHashMap<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.client.TableDescriptor> deletedTables
public IntegrationTestDDLMasterFailover()
public void setUpCluster() throws Exception
setUpCluster in class IntegrationTestBaseExceptionpublic void cleanUpCluster() throws Exception
cleanUpCluster in class IntegrationTestBaseExceptionprotected int getMinServerCount()
protected void setConnection(org.apache.hadoop.hbase.client.Connection connection)
protected org.apache.hadoop.hbase.client.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 IntegrationTestBaseExceptionprivate void checkException(List<IntegrationTestDDLMasterFailover.Worker> workers)
public org.apache.hadoop.hbase.TableName getTablename()
IntegrationTestBasegetTablename in class IntegrationTestBaseprotected Set<String> getColumnFamilies()
IntegrationTestBasegetColumnFamilies in class IntegrationTestBaseCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.