static class TestAsyncProcess.MyAsyncProcessWithReplicas extends TestAsyncProcess.MyAsyncProcess
Modifier and Type | Field and Description |
---|---|
(package private) org.apache.hadoop.hbase.client.ClusterConnection |
connection |
private Map<org.apache.hadoop.hbase.ServerName,Long> |
customPrimarySleepMs |
static int |
DEFAULT_START_LOG_ERRORS_AFTER_COUNT |
private Set<byte[]> |
failures |
(package private) long |
id |
static String |
LOG_DETAILS_FOR_BATCH_ERROR |
static String |
LOG_DETAILS_PERIOD |
(package private) boolean |
logBatchErrorDetails |
(package private) int |
numTries |
(package private) long |
pause |
(package private) long |
pauseForCQTBE |
static String |
PRIMARY_CALL_TIMEOUT_KEY |
(package private) long |
primaryCallTimeoutMicroseconds |
private long |
primarySleepMs |
private AtomicLong |
replicaCalls |
private long |
replicaSleepMs |
(package private) org.apache.hadoop.hbase.client.RequestController |
requestController |
(package private) org.apache.hadoop.hbase.ipc.RpcControllerFactory |
rpcFactory |
(package private) long |
serverTrackerTimeout |
static String |
START_LOG_ERRORS_AFTER_COUNT_KEY |
(package private) int |
startLogErrorsCnt |
allReqs, callsCt, nbActions, nbMultiResponse, service
Constructor and Description |
---|
MyAsyncProcessWithReplicas(org.apache.hadoop.hbase.client.ClusterConnection hc,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
(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 |
createServerErrorTracker() |
(package private) void |
decTaskCounters(Collection<byte[]> arg0,
org.apache.hadoop.hbase.ServerName arg1) |
long |
getReplicaCallCount() |
(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> 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) |
protected void |
waitForMaximumCurrentTasks(int arg0,
org.apache.hadoop.hbase.TableName arg1) |
createAsyncRequestFuture, submit, submit, submit
private long primarySleepMs
private long replicaSleepMs
private Map<org.apache.hadoop.hbase.ServerName,Long> customPrimarySleepMs
private final AtomicLong replicaCalls
public static final String PRIMARY_CALL_TIMEOUT_KEY
public static final String START_LOG_ERRORS_AFTER_COUNT_KEY
public static final int DEFAULT_START_LOG_ERRORS_AFTER_COUNT
public static final String LOG_DETAILS_FOR_BATCH_ERROR
final long id
final org.apache.hadoop.hbase.client.ClusterConnection connection
final org.apache.hadoop.hbase.ipc.RpcControllerFactory rpcFactory
final int startLogErrorsCnt
final long pause
final long pauseForCQTBE
final int numTries
long serverTrackerTimeout
final long primaryCallTimeoutMicroseconds
final boolean logBatchErrorDetails
final org.apache.hadoop.hbase.client.RequestController requestController
public static final String LOG_DETAILS_PERIOD
public MyAsyncProcessWithReplicas(org.apache.hadoop.hbase.client.ClusterConnection hc, org.apache.hadoop.conf.Configuration conf)
public void addFailures(org.apache.hadoop.hbase.client.RegionInfo... hris)
public long getReplicaCallCount()
public void setPrimaryCallDelay(org.apache.hadoop.hbase.ServerName server, long primaryMs)
public void setCallDelays(long primaryMs, long replicaMs)
protected org.apache.hadoop.hbase.client.RpcRetryingCaller<org.apache.hadoop.hbase.client.AbstractResponse> createCaller(org.apache.hadoop.hbase.client.CancellableRegionServerCallable payloadCallable, int rpcTimeout)
createCaller
in class TestAsyncProcess.MyAsyncProcess
<CResult> 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)
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)
protected void waitForMaximumCurrentTasks(int arg0, org.apache.hadoop.hbase.TableName arg1) throws InterruptedIOException
InterruptedIOException
void incTaskCounters(Collection<byte[]> arg0, org.apache.hadoop.hbase.ServerName arg1)
void decTaskCounters(Collection<byte[]> arg0, org.apache.hadoop.hbase.ServerName arg1)
org.apache.hadoop.hbase.client.ConnectionImplementation.ServerErrorTracker createServerErrorTracker()
static boolean isReplicaGet(org.apache.hadoop.hbase.client.Row arg0)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.