Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 864F11057A for ; Tue, 25 Mar 2014 21:38:34 +0000 (UTC) Received: (qmail 78551 invoked by uid 500); 25 Mar 2014 21:38:30 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 78476 invoked by uid 500); 25 Mar 2014 21:38:30 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 78462 invoked by uid 99); 25 Mar 2014 21:38:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2014 21:38:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tychang@gmail.com designates 209.85.213.49 as permitted sender) Received: from [209.85.213.49] (HELO mail-yh0-f49.google.com) (209.85.213.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2014 21:38:23 +0000 Received: by mail-yh0-f49.google.com with SMTP id z6so1213319yhz.8 for ; Tue, 25 Mar 2014 14:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FaM6qJZ0k4l8N584Rlx1cClFg/nyAxMeFcjBFwxwWuw=; b=WIW5lgY03nGpSNd2rdb/5FsCCKHqmU1a78XnfbSeo8bjv6g94T95Jiki2ammPtMGgl gfDIdpBd+d2KHIH8rMNAJofvrtfcwGPaX+zSglkTevcAo5cMP+ZE99Uj1Rd/i7hEfgS0 nvtWjl0pRI/MHsJfTL38e1QHdcXfOPfvaA+vog3O/vhM5cIbF/hDChBfUZqwggfKthuF oKXsnNQUZNfSek2e6FFhgJyqIBEQa6s7uYmkQpIAtS6/f2dV7FVMCmkxq2ZGf0UcQ6+D O14J+EknHlPDqZI3w5cbHLn1lU4+WACnHfu8mC8tcAnCVH1v7ATNR6pKQIUyyUf8MFSw mvXQ== MIME-Version: 1.0 X-Received: by 10.236.91.67 with SMTP id g43mr4226497yhf.146.1395783481812; Tue, 25 Mar 2014 14:38:01 -0700 (PDT) Received: by 10.170.219.197 with HTTP; Tue, 25 Mar 2014 14:38:01 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Mar 2014 14:38:01 -0700 Message-ID: Subject: Re: no-flush based snapshot policy? From: Tianying Chang To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf300e4cf19deab604f5752abe X-Virus-Checked: Checked by ClamAV on apache.org --20cf300e4cf19deab604f5752abe Content-Type: text/plain; charset=ISO-8859-1 Hi, I need a new snapshot policy. Basically, I cannot disable the table, but I also don't need the snapshot to be that "consistent" where all RS coordinated to flush the region before taking the snapshot since it slow down production cluster when flush take too long. It is OK for me if the snapshot missed the data in memstore because I will use WALPlayer to fill the data gap that is not in the snapshot but has been persisted (in WAL). So I should have no data loss. As a quick hack way to test this in my hbase backup workflow, I just add a config key, and skip the flushcache() in file *regionserver/snapshot/FlushSnapshotSubprocedure.java*, something like below. It seems works fine for me, where all data are recovered in a new cluster after running WALPlayer. Does anyone see any problem like data corruption, etc? LOG.debug("Flush Snapshotting region " + region.toString() + " started..."); if (noFlushNeeded) { LOG.debug("No flush before taking snapshot"); } else { region.flushcache(); } If there is no data corruption issue with this policy, I can add an parameter from hbase shell, so that people can dynamically decide when to use no-flush snapshot. Thanks Tian-Ying On Tue, Mar 25, 2014 at 2:08 PM, Tianying Chang wrote: > Hi, > > I need a new snapshot policy which sits in between the disabled and > flushed version. So, basically: > I cannot disable the table, but I also don't need the snapshot to be that > "consistent" where all RS coordinated to flush the region before taking the > snapshot. > --20cf300e4cf19deab604f5752abe--