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

READY_TO_MERGE and READY_TO_SPLIT do not update region state correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.1, 1.4.1
    • 1.3.2, 1.4.3
    • None
    • None
    • Reviewed

    Description

      Region state transitions do not work correctly for READY_TO_MERGE/SPLIT.  thiruvel and I noticed this is due to break statements being in the wrong place in AssignmentManager.  This allows a race condition for example in which one of the regions being merged could be moved concurrently, resulting in the merge transaction failing and then double assignment and/or dataloss.  This bug appears to only affect branch-1 (for example 1.3 and 1.4) and not branch-2 as the relevant code in AM has since been rewritten.

      Attachments

        1. HBASE-19989-branch-1.patch
          6 kB
          Ben Lau
        2. HBASE-19989-ADDENDUM-branch-1.patch
          3 kB
          Ben Lau

        Activity

          People

            benlau Ben Lau
            benlau Ben Lau
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: