Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10070 HBase read high-availability using timeline-consistent region replicas
  3. HBASE-13121

Async wal replication for region replicas and dist log replay does not work together



    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0, 2.0.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:


      We had not tested dist log replay while testing async wal replication for region replicas. There seems to be a couple of issues, but fixable.

      The distinction for dist log replay is that, the region will be opened for recovery and regular writes when a primary fails over. This causes the region open event marker to be written to WAL, but at this time, the region actually does not contain all the edits flushed (since it is still recovering). If secondary regions see this event, and picks up all the files in the region open event marker, then they can drop edits.

      The solution is:

      • Only write the region open event marker to WAL when region is out of recovering mode.
      • Force a flush out of recovering mode. This ensures that all data is force flushed in this case. Before the region open event marker is written, we guarantee that all data in the region is flushed, so the list of files in the event marker is complete.
      • Edits coming from recovery are re-written to WAL when recovery is in action. These edits will have a larger seqId then their "original" seqId. If this is the case, we do not replicate these edits to the secondary replicas. Since the dist log replay recovers edits out of order (coming from parallel replays from WAL file split tasks), this ensures that TIMELINE consistency is respected and edits are not seen out of order in secondaries. These edits are seen from secondaries via the forced flush event.


        1. hbase-13121_v2.patch
          34 kB
          Enis Soztutar
        2. hbase-13121_v1.patch
          29 kB
          Enis Soztutar



            • Assignee:
              enis Enis Soztutar
              enis Enis Soztutar
            • Votes:
              0 Vote for this issue
              6 Start watching this issue


              • Created: