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

Zheng Hu commented on HBASE-18822:
----------------------------------

bq. What will happen when a user doesn't explicitly specify any namespace or 
table in replication peer config ?
Depends on the peer's replicateAllUserTables, if true, then will replicate to 
peer, if false then won't.  you can see the RepliationUtils#contains method 
https://github.com/apache/hbase/blob/master/hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/ReplicationUtils.java#L160

We use it to decide whether need to replicate ddl or not :-) 

> Create table for peer cluster automatically when creating table in source 
> cluster of using namespace replication.
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-18822
>                 URL: https://issues.apache.org/jira/browse/HBASE-18822
>             Project: HBase
>          Issue Type: Improvement
>          Components: Replication
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Zheng Hu
>            Assignee: Zheng Hu
>            Priority: Major
>             Fix For: 3.0.0, 2.2.0
>
>         Attachments: HBASE-18822.v1.patch
>
>
> In our cluster of using namespace replication,   we always forget to create 
> table in peer cluster, which lead to replication get stuck. 
> We have implemented the feature in our cluster:  create table for peer 
> cluster automatically when creating table in source cluster of using 
> namespace replication.
>  
> I'm not sure if someone else needs this feature, so create an issue here for 
> discussing   



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to