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

Assign procedure on the crashed server is not properly interrupted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3, 2.1.2
    • None
    • None
    • Reviewed

    Description

      When the server crashes, it's SCP checks if there is already a procedure assigning the region on this crashed server. If we found one, SCP will just interrupt the already running AssignProcedure by calling remoteCallFailed which internally just changes the region node state to OFFLINE and send the procedure back with transition queue state for assignment with a new plan.

      But, due to the race condition between the calling of the remoteCallFailed and current state of the already running assign procedure(REGION_TRANSITION_FINISH: where the region is already opened), it is possible that assign procedure goes ahead in updating the regionStateNode to OPEN on a crashed server.

      As SCP had already skipped this region for assignment as it was relying on existing assign procedure to do the right thing, this whole confusion leads region to a not accessible state.

      Attachments

        1. HBASE-21440.branch-2.0.001.patch
          3 kB
          Ankit Singhal
        2. HBASE-21440.branch-2.0.002.patch
          2 kB
          Ankit Singhal
        3. HBASE-21440.branch-2.0.003.patch
          9 kB
          Ankit Singhal
        4. HBASE-21440.branch-2.0.004.patch
          10 kB
          Ankit Singhal
        5. HBASE-21440.branch-2.0.005.patch
          11 kB
          Ankit Singhal
        6. HBASE-21440.branch-2.1.005.patch
          12 kB
          Ankit Singhal

        Activity

          People

            ankit@apache.org Ankit Singhal
            ankit@apache.org Ankit Singhal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: