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

Open/Close region request may be executed twice when master restart

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha-1, 2.2.0, 2.3.0
    • Fix Version/s: 3.0.0-alpha-1, 2.2.0, 2.3.0
    • Component/s: None
    • Labels:
      None

      Description

      We found this problem when run ITBLL for our internal branch which based branch-2.2.

      1. Master A schedule a TRSP which will reopen region1. And this TRSP firstly schdule a sub remote procedure: CloseRegionProcedure and send the close region request to RS.
      2. Master A shutdown and Master B is the new active master. And restore this TRSP and the remote procedure CloseRegionProcedure.
      3. RS reported to the new Master B and the CloseRegionProcedure finished. Then the TRSP schdule a new OpenRegionProcedure and send open region request to RS.
      4. But meanwhile Master B send the close region request to RS again.
      5. The open region request finished firstly and report to master succeed. The master thought the region was opened on RS. But the RS excuted the close region request again and closed the region1.
      6. The Master thought the region opened but the RS closed the region. Then the new TRSP will stuck forever.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zghao Guanghao Zhang
                Reporter:
                zghao Guanghao Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: