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

Replication may loss data when refresh recovered replication sources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.3.0, 2.2.5
    • 3.0.0-alpha-1, 2.2.6, 2.3.2
    • Replication
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: