[ 
https://issues.apache.org/jira/browse/HBASE-25129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17205832#comment-17205832
 ] 

Huaxiang Sun edited comment on HBASE-25129 at 10/1/20, 10:57 PM:
-----------------------------------------------------------------

Thanks Duo for the explain. This issue has nothing to do with meta replica. We 
have one table, which has the replication scope set to 1 by accident, and 
actually, there is no replication peer (i.e, no replication turned on at that 
cluster). In this case, I was expecting that rep_barrier has 0 cells, and found 
that there are quite some cells in this family. 

While this is not causing serious issue so far, it will be great to avoid if it 
is not necessary. 

Some more background, the cluster was recently upgraded from 1.2 to 2.3, this 
was discovered while we were checking meta directory. 

two followup questions without knowing more details about serial replication 
design. 
 # If serial replication peer is added after region open (without writing to 
rep_barrier first), will it break serial replication? Seem so from your 
description.

       2. Can we introduce a config knob to turn on/off serial replication 
support so it can simply check this knob and replication scope to decide if it 
needs to write to rep_barrier family?

 


was (Author: huaxiangsun):
Thanks Duo for the explain. This issue has nothing to do with meta replica. We 
have one table, which has the replication scope set to 1 by accident, and 
actually, there is no replication peer (i.e, no replication turned on at that 
cluster). In this case, I was expecting that rep_barrier has 0 cells, and found 
that there are quite some cells in this family. 

While this is not causing serious issue so far, it will be great to avoid if it 
is not necessary. 

 

> serial replication, addReplicationBarrier is writing to rep_barrier family 
> even there is no serial replication peer.
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-25129
>                 URL: https://issues.apache.org/jira/browse/HBASE-25129
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Huaxiang Sun
>            Assignee: Huaxiang Sun
>            Priority: Major
>
> We found that there are quite some data in rep_barrier family even there is 
> no serial replication enabled. Checked the code,  it is checking if table has 
> replication enabled. Think there is another check needed (i.e, is there any 
> serial replication peers configured).
> [https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateStore.java#L215]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to