Package org.apache.hadoop.hbase
Class IntegrationTestRegionReplicaReplication.DelayingMultiThreadedUpdater
java.lang.Object
org.apache.hadoop.hbase.util.MultiThreadedAction
org.apache.hadoop.hbase.util.MultiThreadedWriterBase
org.apache.hadoop.hbase.util.MultiThreadedUpdater
org.apache.hadoop.hbase.IntegrationTestRegionReplicaReplication.DelayingMultiThreadedUpdater
- Enclosing class:
- IntegrationTestRegionReplicaReplication
public static class IntegrationTestRegionReplicaReplication.DelayingMultiThreadedUpdater
extends MultiThreadedUpdater
This extends MultiThreadedWriter to add a configurable delay to the keys written by the writer
threads to become available to the MultiThradedReader threads. We add this delay because of the
async nature of the wal replication to region replicas.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.MultiThreadedUpdater
MultiThreadedUpdater.HBaseUpdaterThread
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.MultiThreadedAction
MultiThreadedAction.DefaultDataGenerator
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.util.MultiThreadedUpdater
updaters
Fields inherited from class org.apache.hadoop.hbase.util.MultiThreadedWriterBase
failedKeySet, nextKeyToWrite, trackWroteKeys, wroteKeyQueueSize, wroteKeys, wroteUpToKey
Fields inherited from class org.apache.hadoop.hbase.util.MultiThreadedAction
conf, connection, dataGenerator, endKey, numCols, numKeys, numThreads, numThreadsWorking, REPORTING_INTERVAL_MS, startKey, tableName, totalOpTimeMs, verbose
-
Constructor Summary
ConstructorDescriptionDelayingMultiThreadedUpdater
(LoadTestDataGenerator dataGen, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, double updatePercent) -
Method Summary
Modifier and TypeMethodDescriptionprotected BlockingQueue<Long>
createWriteKeysQueue
(org.apache.hadoop.conf.Configuration conf) Methods inherited from class org.apache.hadoop.hbase.util.MultiThreadedUpdater
addUpdaterThreads, linkToWriter, mutate, mutate, setBatchUpdate, setIgnoreNonceConflicts, start, waitForFinish
Methods inherited from class org.apache.hadoop.hbase.util.MultiThreadedWriterBase
failedToWriteKey, getNumWriteFailures, getRegionDebugInfoSafe, progressInfo, setTrackWroteKeys, wroteUpToKey
Methods inherited from class org.apache.hadoop.hbase.util.MultiThreadedAction
appendToStatus, appendToStatus, close, getEndKey, isDone, startThreads, verifyResultAgainstDataGenerator, verifyResultAgainstDataGenerator
-
Field Details
-
delayMs
-
-
Constructor Details
-
DelayingMultiThreadedUpdater
public DelayingMultiThreadedUpdater(LoadTestDataGenerator dataGen, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, double updatePercent) throws IOException - Throws:
IOException
-
-
Method Details
-
createWriteKeysQueue
- Overrides:
createWriteKeysQueue
in classMultiThreadedWriterBase
-