Package org.apache.hadoop.hbase.client
Class TestAsyncProcess.MyAsyncProcessWithReplicas
java.lang.Object
org.apache.hadoop.hbase.client.TestAsyncProcess.MyAsyncProcess
org.apache.hadoop.hbase.client.TestAsyncProcess.MyAsyncProcessWithReplicas
- Enclosing class:
- TestAsyncProcess
-
Field Summary
Modifier and TypeFieldDescription(package private) final org.apache.hadoop.hbase.client.ClusterConnection
(package private) final org.apache.hadoop.hbase.client.ConnectionConfiguration
static final int
private Set<byte[]>
(package private) final long
static final String
static final String
(package private) final boolean
(package private) final int
static final String
(package private) final long
private long
private final AtomicLong
private long
(package private) final org.apache.hadoop.hbase.client.RequestController
(package private) final org.apache.hadoop.hbase.ipc.RpcControllerFactory
(package private) long
static final String
(package private) final int
Fields inherited from class org.apache.hadoop.hbase.client.TestAsyncProcess.MyAsyncProcess
allReqs, callsCt, nbActions, nbMultiResponse, service
-
Constructor Summary
ConstructorDescriptionMyAsyncProcessWithReplicas
(org.apache.hadoop.hbase.client.ClusterConnection hc, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescription(package private) static void
addAction
(org.apache.hadoop.hbase.ServerName arg0, byte[] arg1, org.apache.hadoop.hbase.client.Action arg2, Map<org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.client.MultiAction> arg3, long arg4) void
addFailures
(org.apache.hadoop.hbase.client.RegionInfo... hris) protected org.apache.hadoop.hbase.client.RpcRetryingCaller<org.apache.hadoop.hbase.client.AbstractResponse>
createCaller
(org.apache.hadoop.hbase.client.CancellableRegionServerCallable payloadCallable, int rpcTimeout) (package private) org.apache.hadoop.hbase.client.ConnectionImplementation.ServerErrorTracker
(package private) void
decTaskCounters
(Collection<byte[]> arg0, org.apache.hadoop.hbase.ServerName arg1) long
(package private) void
incTaskCounters
(Collection<byte[]> arg0, org.apache.hadoop.hbase.ServerName arg1) (package private) static boolean
isReplicaGet
(org.apache.hadoop.hbase.client.Row arg0) void
setCallDelays
(long primaryMs, long replicaMs) void
setPrimaryCallDelay
(org.apache.hadoop.hbase.ServerName server, long primaryMs) (package private) <CResult extends Object>
org.apache.hadoop.hbase.client.AsyncRequestFuturesubmitMultiActions
(org.apache.hadoop.hbase.client.AsyncProcessTask arg0, List<org.apache.hadoop.hbase.client.Action> arg1, long arg2, List<Exception> arg3, List<Integer> arg4, Map<org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.client.MultiAction> arg5) protected void
waitForMaximumCurrentTasks
(int arg0, org.apache.hadoop.hbase.TableName arg1) Methods inherited from class org.apache.hadoop.hbase.client.TestAsyncProcess.MyAsyncProcess
createAsyncRequestFuture, submit, submit, submit
-
Field Details
-
failures
-
-
replicaSleepMs
-
customPrimarySleepMs
-
replicaCalls
-
PRIMARY_CALL_TIMEOUT_KEY
- See Also:
-
START_LOG_ERRORS_AFTER_COUNT_KEY
- See Also:
-
DEFAULT_START_LOG_ERRORS_AFTER_COUNT
public static final int DEFAULT_START_LOG_ERRORS_AFTER_COUNT- See Also:
-
LOG_DETAILS_FOR_BATCH_ERROR
- See Also:
-
id
final long id -
connection
final org.apache.hadoop.hbase.client.ClusterConnection connection -
connectionConfiguration
final org.apache.hadoop.hbase.client.ConnectionConfiguration connectionConfiguration -
rpcFactory
final org.apache.hadoop.hbase.ipc.RpcControllerFactory rpcFactory -
startLogErrorsCnt
final int startLogErrorsCnt -
numTries
final int numTries -
serverTrackerTimeout
long serverTrackerTimeout -
primaryCallTimeoutMicroseconds
final long primaryCallTimeoutMicroseconds -
logBatchErrorDetails
final boolean logBatchErrorDetails -
requestController
final org.apache.hadoop.hbase.client.RequestController requestController -
LOG_DETAILS_PERIOD
- See Also:
-
-
Constructor Details
-
MyAsyncProcessWithReplicas
public MyAsyncProcessWithReplicas(org.apache.hadoop.hbase.client.ClusterConnection hc, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
addFailures
-
getReplicaCallCount
-
setPrimaryCallDelay
-
setCallDelays
-
createCaller
protected org.apache.hadoop.hbase.client.RpcRetryingCaller<org.apache.hadoop.hbase.client.AbstractResponse> createCaller(org.apache.hadoop.hbase.client.CancellableRegionServerCallable payloadCallable, int rpcTimeout) - Overrides:
createCaller
in classTestAsyncProcess.MyAsyncProcess
-
submitMultiActions
<CResult extends Object> org.apache.hadoop.hbase.client.AsyncRequestFuture submitMultiActions(org.apache.hadoop.hbase.client.AsyncProcessTask arg0, List<org.apache.hadoop.hbase.client.Action> arg1, long arg2, List<Exception> arg3, List<Integer> arg4, Map<org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.client.MultiAction> arg5) -
addAction
static void addAction(org.apache.hadoop.hbase.ServerName arg0, byte[] arg1, org.apache.hadoop.hbase.client.Action arg2, Map<org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.client.MultiAction> arg3, long arg4) -
waitForMaximumCurrentTasks
protected void waitForMaximumCurrentTasks(int arg0, org.apache.hadoop.hbase.TableName arg1) throws InterruptedIOException - Throws:
InterruptedIOException
-
incTaskCounters
-
decTaskCounters
-
createServerErrorTracker
org.apache.hadoop.hbase.client.ConnectionImplementation.ServerErrorTracker createServerErrorTracker() -
isReplicaGet
static boolean isReplicaGet(org.apache.hadoop.hbase.client.Row arg0)
-