Guanghao Zhang created HBASE-24871:
--------------------------------------
Summary: Replication may loss data when refresh recovered
replication sources
Key: HBASE-24871
URL: https://issues.apache.org/jira/browse/HBASE-24871
Project: HBase
Issue Type: Bug
Reporter: Guanghao Zhang
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.
{code:java}
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);
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)