Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20828 Finish-up AMv2 Design/List of Tenets/Specification of operation
  3. HBASE-21330

ReopenTableRegionsProcedure will enter an infinite loop if we schedule a TRSP at the same time

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.2.0
    • amv2
    • None
    • Reviewed

    Description

      The problem is that, if there are regions which already have TRSPs with them, we will give up and just to REOPEN_TABLE_REGIONS_CONFIRM_REOPENED directly. And in REOPEN_TABLE_REGIONS_CONFIRM_REOPENED, if there are still regions need to be reopened, we will just back to REOPEN_TABLE_REGIONS_REOPEN_REGIONS directly. And since ReopenTableRegionsProcedure holds the exclusive lock on table, the TRSP will not have chance to execute, and the result is that, the ReopenTableRegionsProcedure just keep looping in the two states.

      Attachments

        1. HBASE-21330.patch
          9 kB
          Duo Zhang

        Activity

          People

            zhangduo Duo Zhang
            zhangduo Duo Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: