Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20046 Reconsider the implementation for serial replication
  3. HBASE-20242

The open sequence number will grow if we fail to open a region after writing the max sequence id file

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.1.0
    • None
    • None
    • Reviewed
    • Hide
      Now when opening a region, we will store the current max sequence id of the region to its max sequence id file instead of the 'next sequence id'. This could avoid the sequence id bumping when we fail to open a region, and also align to the behavior when we close a region.
      Show
      Now when opening a region, we will store the current max sequence id of the region to its max sequence id file instead of the 'next sequence id'. This could avoid the sequence id bumping when we fail to open a region, and also align to the behavior when we close a region.

    Description

      We write the current max sequence id plus one as the new max sequence id so if we fail before report RIT to master, when assign next time the open sequence number will increase by one.

      But it is possible that we fail before writing the open region marker so there will no actual WAL with the sequence id which is the open sequence number minus one. This will cause the serial replication to be stuck.

      Attachments

        1. HBASE-20242.patch
          7 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: