Return-Path: Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: (qmail 18002 invoked from network); 15 Oct 2010 02:24:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Oct 2010 02:24:15 -0000 Received: (qmail 76560 invoked by uid 500); 15 Oct 2010 02:24:15 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 76512 invoked by uid 500); 15 Oct 2010 02:24:15 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 76504 invoked by uid 99); 15 Oct 2010 02:24:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 02:24:15 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryanobjc@gmail.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-iw0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 02:24:09 +0000 Received: by iwn1 with SMTP id 1so428833iwn.14 for ; Thu, 14 Oct 2010 19:23:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=QVzyIbBx7ju7tMrerZCDgtogbLjOHisqg5WOt9SiZ0c=; b=OQ8BSOhj1UVNbQQAD8oT3sYgeNkTGCGf62/YfzDmvo06J53sXsBxMfRFooIVvzDQNx PM+Lx1+KDZsPKTDrvA9lALsfnIFN9tHt2hTUHeQt4vBS706yYUOJSaNzOJfJkhJ3R46U tlRjWIfj1gsTFASxgIIAPuPLvRcDx8J9fsPc0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jvi8IfureKpQC6Z4iajjzBiUBRPyoFS65wO6vX7Ltwp0MdPfq/xC6h/aCqHYl/HQsF 98/9lEWAJRrB8QriQv1RtNzDHMKL2EvW6oDbegjGg5J3w+WOZ7JWUPbD7kwsHe+a25jf 4LfSo1igyHEYJeJXJEnkqryIHHRgsbG5HGjuI= MIME-Version: 1.0 Received: by 10.42.69.82 with SMTP id a18mr21530icj.459.1287109426778; Thu, 14 Oct 2010 19:23:46 -0700 (PDT) Received: by 10.231.10.131 with HTTP; Thu, 14 Oct 2010 19:23:46 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Oct 2010 19:23:46 -0700 Message-ID: Subject: Re: HBaseAdmin.flush() From: Ryan Rawson To: dev@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 The answer is HDFS-200 and changes to HLog. You should start considering what your 0.90 upgrade plan will be, it is imperative that within 3 months no one is running 0.20.6 or earlier. Getting the features of 0.90 on 0.20.x is not the right direction and would take as much effort as creating 0.90 essentially. To help the adoption we are using 0.89 at Stumbleupon in production and will be one of the first users of 0.90 as it comes out. -ryan On Thu, Oct 14, 2010 at 7:05 PM, Ted Yu wrote: > J-D: > If you can briefly point out the code in 0.89 which makes using WAL more > reliable, that would be great. > > Thanks > > On Thu, Oct 14, 2010 at 5:51 PM, Jean-Daniel Cryans wrote: > >> Even if HBaseAdmin.flush is made synchronous, that won't get you far >> since it's still processed sequentially on the region servers. A >> better well-known option is to set hbase.regionserver.hlog.blocksize >> to a small number, and if you want high durability you could set that >> to 1KB (basically rolling at every new insert). Since this is >> incredibly inefficient, a more wide-spread number (and one we used >> while we were on 0.20) is 2MB. Set it higher if you have a high insert >> rate, or lower if you don't insert very often. >> >> J-D >> >> On Thu, Oct 14, 2010 at 8:36 PM, Ted Yu wrote: >> > We're still using 0.20.6 :-) >> > >> > On Thu, Oct 14, 2010 at 5:19 PM, Jean-Daniel Cryans > >wrote: >> > >> >> If your Puts are using the WAL, and you are on 0.89, it's already as >> >> durable as it can be without forcing flushes. >> >> >> >> J-D >> >> >> >> On Thu, Oct 14, 2010 at 8:07 PM, Ted Yu wrote: >> >> > Hi, >> >> > HBaseAdmin.flush() is asynchronous. >> >> > In order to achieve high durability, do I have a better choice ? >> >> > >> >> > Thanks >> >> > >> >> >> > >> >