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

Replication may loss data when refresh recovered replication sources

    XMLWordPrintableJSON

    Details

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

      Description

      See code in https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java#L519

       

      The WAL enqueued to wrong replication source.

          for (String queueId : previousQueueIds) {
              ReplicationSourceInterface replicationSource = createSource(queueId, peer);
              this.oldsources.add(replicationSource);
              this.queueStorage.getWALsInQueue(this.server.getServerName(), queueId)
                .forEach(wal -> src.enqueueLog(new Path(wal)));
              toStartup.add(replicationSource);
            }
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: