Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CED10200CAC for ; Mon, 19 Jun 2017 09:56:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CD9B9160BEC; Mon, 19 Jun 2017 07:56:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 219CC160BE4 for ; Mon, 19 Jun 2017 09:56:08 +0200 (CEST) Received: (qmail 88664 invoked by uid 500); 19 Jun 2017 07:56:03 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 88653 invoked by uid 99); 19 Jun 2017 07:56:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2017 07:56:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E55AD1A030C for ; Mon, 19 Jun 2017 07:56:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id NjxfYUe1DIV9 for ; Mon, 19 Jun 2017 07:56:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 282505F3FF for ; Mon, 19 Jun 2017 07:56:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6E5EEE0BB3 for ; Mon, 19 Jun 2017 07:56:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2B89B23FFE for ; Mon, 19 Jun 2017 07:56:00 +0000 (UTC) Date: Mon, 19 Jun 2017 07:56:00 +0000 (UTC) From: "Guanghao Zhang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16868) Add a replicate_all flag to avoid misuse the namespaces and table-cfs config of replication peer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Jun 2017 07:56:10 -0000 [ https://issues.apache.org/jira/browse/HBASE-16868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guanghao Zhang updated HBASE-16868: ----------------------------------- Attachment: HBASE-16868.master.001.patch > Add a replicate_all flag to avoid misuse the namespaces and table-cfs config of replication peer > ------------------------------------------------------------------------------------------------ > > Key: HBASE-16868 > URL: https://issues.apache.org/jira/browse/HBASE-16868 > Project: HBase > Issue Type: New Feature > Components: Replication > Affects Versions: 2.0.0 > Reporter: Guanghao Zhang > Assignee: Guanghao Zhang > Attachments: HBASE-16868.master.001.patch > > > First add a new peer by shell cmd. > {code} > add_peer '1', CLUSTER_KEY => "server1.cie.com:2181:/hbase". > {code} > If we don't set namespaces and table cfs in peer config. It means replicate all tables to the peer cluster. > Then append a table to the peer config. > {code} > append_peer_tableCFs '1', {"table1" => []} > {code} > Then this peer will only replicate table1 to the peer cluster. It changes to replicate only one table from replicate all tables in the cluster. It is very easy to misuse in production cluster. So we should avoid appending table to a peer which replicates all table. -- This message was sent by Atlassian JIRA (v6.4.14#64029)