Sun Xin created HBASE-25590:
---
Summary: Bulkload replication HFileRefs cannot be cleared in some
cases where set exclude-namespace/exclude-table-cfs
Key: HBASE-25590
URL: https://issues.apache.org/jira/browse/HBASE-25590
Project: HBase
Issue Type: Bug
Components: Replication
Affects Versions: 2.4.1, 2.3.4, 2.2.6, 3.0.0-alpha-1
Reporter: Sun Xin
Assignee: Sun Xin
In
[ReplicationSource#addHFileRefs|https://github.com/apache/hbase/blob/ed90a14995acd87111d2b9849f07d84418ca43d4/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java#L264],
we may add unwanted hfiles to the _HFileRefs_ if a peer is set _replicate_all_
true and set _exclude-namespace/exclude-table-cfs_.
These unwanted _HFileRefs_ will not be replicated to remote cluster and not be
cleared.
Two problems are caused by this bug:
# The metric sizeOfHFileRefsQueue cannot be zeroed.
# Referenced HFiles cannot be deleted by _ReplicationHFileCleaner._
--
This message was sent by Atlassian Jira
(v8.3.4#803005)