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

distributedLogReplay may hang during chained region server failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.98.0, 0.95.2
    • Component/s: MTTR
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In a test, half cluster(in terms of region servers) was down and some log replay had incurred chained RS failures(receiving RS of a log replay failed again).

      Since by default, we only allow 3 concurrent SSH handlers(controlled by

      this.executorService.startExecutorService(ExecutorType.MASTER_SERVER_OPERATIONS,conf.getInt("hbase.master.executor.serverops.threads", 3));

      ).

      If all 3 SSH handlers are doing logReplay(blocking call) and one of receiving RS fails again then logReplay will hang because regions of the newly failed RS can't be re-assigned to another live RS(no ssh handler will be processed due to max threads setting) and existing log replay will keep routing replay traffic to the dead RS.

      The fix is to submit logReplay work into a separate type of executor queue in order not to block SSH region assignment so that logReplay can route traffic to a live RS after retries and move forward.

        Attachments

        1. 8729-v2.patch
          9 kB
          Ted Yu
        2. hbase-8729.patch
          10 kB
          Jeffrey Zhong
        3. hbase-8729-v3.patch
          9 kB
          Jeffrey Zhong
        4. hbase-8729-v4.patch
          21 kB
          Jeffrey Zhong
        5. hbase-8729-v5.patch
          21 kB
          Jeffrey Zhong

          Issue Links

            Activity

              People

              • Assignee:
                jeffreyz Jeffrey Zhong
                Reporter:
                jeffreyz Jeffrey Zhong
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: