You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Guanghao Zhang (Jira)" <ji...@apache.org> on 2020/08/12 06:53:00 UTC
[jira] [Created] (HBASE-24871) Replication may loss data when
refresh recovered replication sources
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)