public class IntegrationTestRegionReplicaReplication extends IntegrationTestIngest
Example usage:
hbase org.apache.hadoop.hbase.IntegrationTestRegionReplicaReplication -DIntegrationTestRegionReplicaReplication.num_keys_per_server=10000 -Dhbase.IntegrationTestRegionReplicaReplication.runtime=600000 -DIntegrationTestRegionReplicaReplication.read_delay_ms=5000 -DIntegrationTestRegionReplicaReplication.region_replication=3 -DIntegrationTestRegionReplicaReplication.region_replica_id=2 -DIntegrationTestRegionReplicaReplication.num_read_threads=100 -DIntegrationTestRegionReplicaReplication.num_write_threads=100
| Modifier and Type | Class and Description |
|---|---|
static class |
IntegrationTestRegionReplicaReplication.DelayingMultiThreadedUpdater
This extends MultiThreadedWriter to add a configurable delay to the keys written by the writer
threads to become available to the MultiThradedReader threads.
|
static class |
IntegrationTestRegionReplicaReplication.DelayingMultiThreadedWriter
This extends MultiThreadedWriter to add a configurable delay to the keys written by the writer
threads to become available to the MultiThradedReader threads.
|
| Modifier and Type | Field and Description |
|---|---|
private static String[] |
DEFAULT_COLUMN_FAMILIES |
private static int |
DEFAULT_REGION_REPLICATION |
private static String |
OPT_READ_DELAY_MS |
private static int |
SERVER_COUNT |
private static String |
TEST_NAME |
cluster, DEFAULT_NUM_KEYS_PER_SERVER, DEFAULT_NUM_READ_THREADS, DEFAULT_NUM_WRITE_THREADS, DEFAULT_RUN_TIME, HIPHEN, JUNIT_RUN_TIME, LOAD_TEST_TOOL_INIT_ARGS, loadTool, LOG, NUM_KEYS_PER_SERVER_KEY, NUM_READ_THREADS_KEY, NUM_WRITE_THREADS_KEY, RUN_TIME_KEY, utilCHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp| Constructor and Description |
|---|
IntegrationTestRegionReplicaReplication() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMinServerCount() |
static void |
main(String[] args) |
protected void |
runIngestTest(long defaultRunTime,
long keysPerServerPerIter,
int colsPerKey,
int recordSize,
int writeThreads,
int readThreads) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
testIngest() |
getArgsForLoadTestTool, getArgsForLoadTestToolInitTable, getColumnFamilies, getNumKeys, getTablename, initTable, internalRunIngestTest, runTestFromCommandLine, setUpClusteraddOptions, cleanUp, cleanUpCluster, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, processOptions, setUp, setUpMonkey, startMonkeyaddOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, runprivate static final String OPT_READ_DELAY_MS
private static final int DEFAULT_REGION_REPLICATION
private static final int SERVER_COUNT
private static final String[] DEFAULT_COLUMN_FAMILIES
public IntegrationTestRegionReplicaReplication()
protected int getMinServerCount()
getMinServerCount in class IntegrationTestIngestpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class org.apache.hadoop.hbase.util.AbstractHBaseToolpublic void testIngest() throws Exception
testIngest in class IntegrationTestIngestExceptionprotected void runIngestTest(long defaultRunTime, long keysPerServerPerIter, int colsPerKey, int recordSize, int writeThreads, int readThreads) throws Exception
runIngestTest in class IntegrationTestIngestExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.