Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-16345

RpcRetryingCallerWithReadReplicas#call() should catch some RegionServer Exceptions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.0.3, 1.4.0, 1.2.3, 1.1.7, 2.0.0
    • Fix Version/s: 1.4.0, 2.0.0
    • Component/s: Client
    • Labels:
      None

      Description

      Update for the description. Debugged more at this front based on the comments from Enis.

      The cause is that for the primary replica, if its retry is exhausted too fast, f.get() [1] returns ExecutionException. This Exception needs to be ignored and continue with the replicas.
      The other issue is that after adding calls for the replicas, if the first completed task gets ExecutionException (due to the retry exhausted), it throws the exception to the client[2].
      In this case, it needs to loop through these tasks, waiting for the success one. If no one succeeds, throw exception.

      Similar for the scan as well

      [1] https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java#L197

      [2] https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RpcRetryingCallerWithReadReplicas.java#L219

        Attachments

        1. HBASE-16345-v001.patch
          15 kB
          huaxiang sun
        2. HBASE-16345.master.001.patch
          15 kB
          huaxiang sun
        3. HBASE-16345.master.002.patch
          16 kB
          huaxiang sun
        4. HBASE-16345.master.003.patch
          25 kB
          huaxiang sun
        5. HBASE-16345.master.004.patch
          25 kB
          huaxiang sun
        6. HBASE-16345.master.005.patch
          26 kB
          huaxiang sun
        7. HBASE-16345.master.005.patch
          26 kB
          huaxiang sun
        8. HBASE-16345.branch-1.001.patch
          23 kB
          huaxiang sun
        9. HBASE-16345.branch-1.001.patch
          23 kB
          huaxiang sun
        10. HBASE-16345.master.006.patch
          26 kB
          huaxiang sun

          Issue Links

            Activity

              People

              • Assignee:
                huaxiang huaxiang sun
                Reporter:
                huaxiang huaxiang sun
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: