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

Replication may loss data when refresh recovered replication sources

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment