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

Merged region's RIT state may not be cleaned after master restart

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.1.0, 2.0.1
    • 3.0.0-alpha-1, 2.2.0, 2.1.1, 2.0.2
    • None
    • None

    Description

      In MergeTableRegionsProcedure, we issue UnassignProcedures to offline regions to merge. But if we restart master just after MergeTableRegionsProcedure finished these two UnassignProcedure and before it can delete their meta entries. The new master will found these two region is CLOSED but no procedures are attached to them. They will be regard as RIT regions and nobody will clean the RIT state for them later.
      A quick way to resolve this stuck situation in the production env is restarting master again, since the meta entries are deleted in MergeTableRegionsProcedure. Here, I offer a fix for this problem.

      Attachments

        1. HBASE-20860.branch-2.0.002.patch
          8 kB
          Allan Yang
        2. HBASE-20860.branch-2.0.003.patch
          7 kB
          Allan Yang
        3. HBASE-20860.branch-2.0.004.patch
          7 kB
          Allan Yang
        4. HBASE-20860.branch-2.0.005.patch
          6 kB
          Allan Yang
        5. HBASE-20860.branch-2.0.patch
          8 kB
          Allan Yang

        Activity

          People

            allan163 Allan Yang
            allan163 Allan Yang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: