Class TestAsyncProcess.MyAsyncProcessWithReplicas

java.lang.Object
org.apache.hadoop.hbase.client.TestAsyncProcess.MyAsyncProcess
org.apache.hadoop.hbase.client.TestAsyncProcess.MyAsyncProcessWithReplicas
Enclosing class:
TestAsyncProcess

  • Field Details

    • failures

      private Set<byte[]> failures
    • primarySleepMs

      private long primarySleepMs
    • replicaSleepMs

      private long replicaSleepMs
    • customPrimarySleepMs

      private Map<org.apache.hadoop.hbase.ServerName,Long> customPrimarySleepMs
    • replicaCalls

      private final AtomicLong replicaCalls
    • PRIMARY_CALL_TIMEOUT_KEY

      public static final String PRIMARY_CALL_TIMEOUT_KEY
      See Also:
    • START_LOG_ERRORS_AFTER_COUNT_KEY

      public static final String 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

      public static final String 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

      public static final String 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

      public void addFailures(org.apache.hadoop.hbase.client.RegionInfo... hris)
    • getReplicaCallCount

      public long getReplicaCallCount()
    • setPrimaryCallDelay

      public void setPrimaryCallDelay(org.apache.hadoop.hbase.ServerName server, long primaryMs)
    • setCallDelays

      public void setCallDelays(long primaryMs, long replicaMs)
    • 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 class TestAsyncProcess.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

      void incTaskCounters(Collection<byte[]> arg0, org.apache.hadoop.hbase.ServerName arg1)
    • decTaskCounters

      void decTaskCounters(Collection<byte[]> arg0, org.apache.hadoop.hbase.ServerName arg1)
    • createServerErrorTracker

      org.apache.hadoop.hbase.client.ConnectionImplementation.ServerErrorTracker createServerErrorTracker()
    • isReplicaGet

      static boolean isReplicaGet(org.apache.hadoop.hbase.client.Row arg0)