Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A42F9107B8 for ; Tue, 2 Jul 2013 03:56:24 +0000 (UTC) Received: (qmail 98713 invoked by uid 500); 2 Jul 2013 03:56:22 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 98646 invoked by uid 500); 2 Jul 2013 03:56:21 -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 98576 invoked by uid 99); 2 Jul 2013 03:56:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 03:56:21 +0000 Date: Tue, 2 Jul 2013 03:56:21 +0000 (UTC) From: "Dave Latham (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8844) Document stop_replication danger MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-8844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697482#comment-13697482 ] Dave Latham commented on HBASE-8844: ------------------------------------ There are some cases where it can affect the master cluster as well. We actually were bit in the master cluster by having the master go OutOfMemory a couple of weeks after using stop_replication. We did not lose any data from the master cluster. Some more details in the thread here: http://mail-archives.apache.org/mod_mbox/hbase-user/201302.mbox/%3CCAA4mzoky-4G-235_ta41tDNfL1K-RtT0f3Q=XLXF930Wq=y_nw@mail.gmail.com%3E The main cause if replication is enabled in the configuration but you run stop_replication then the master will stop cleaning out all HLog files from .oldlogs. (e.g. HBASE-3489) Now that HBASE-3134 is in I would recommend always using disable_peer rather than stop_replication and treat stop_replication as dangerous. > Document stop_replication danger > -------------------------------- > > Key: HBASE-8844 > URL: https://issues.apache.org/jira/browse/HBASE-8844 > Project: HBase > Issue Type: Task > Components: documentation > Reporter: Patrick > Priority: Minor > Attachments: HBASE-8844.patch > > > The first two tutorials for enabling replication that google gives me [1], [2] take very different tones with regard to stop_replication. The HBase docs [1] make it sound fine to start and stop replication as desired. The Cloudera docs [2] say it may cause data loss. > Which is true? If data loss is possible, are we talking about data loss in the primary cluster, or data loss in the standby cluster (presumably would require reinitializing the sync with a new CopyTable). > [1] http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/replication/package-summary.html#requirements > [2] http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.0/CDH4-Installation-Guide/cdh4ig_topic_20_11.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira