Return-Path: Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: (qmail 14613 invoked from network); 13 Jun 2010 07:50:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Jun 2010 07:50:22 -0000 Received: (qmail 51435 invoked by uid 500); 13 Jun 2010 07:50:22 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 51082 invoked by uid 500); 13 Jun 2010 07:50:19 -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 51060 invoked by uid 99); 13 Jun 2010 07:50:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jun 2010 07:50:18 +0000 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=FH_HELO_EQ_D_D_D_D,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 75.101.130.251 is neither permitted nor denied by domain of mjlai09@gmail.com) Received: from [75.101.130.251] (HELO ip-10-250-218-255.ec2.internal) (75.101.130.251) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jun 2010 07:50:12 +0000 Received: from ip-10-250-218-255.ec2.internal (localhost.localdomain [127.0.0.1]) by ip-10-250-218-255.ec2.internal (Postfix) with ESMTP id 0AF98EE2C; Sun, 13 Jun 2010 07:49:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: Review Request: HBASE-2468: Improvements to prewarm META cache on clients. From: "Mingjie Lai" To: "Todd Lipcon" , stack@duboce.net Date: Sun, 13 Jun 2010 07:49:51 -0000 Message-ID: <20100613074951.21500.34231@ip-10-250-218-255.ec2.internal> Cc: "Mingjie Lai" , "Benoit Sigoure" , dev@hbase.apache.org, "Ryan Rawson" , jiraposter@review.hbase.org, "Jonathan Gray" In-Reply-To: <20100609225059.27731.84425@ip-10-250-218-255.ec2.internal> References: <20100609225059.27731.84425@ip-10-250-218-255.ec2.internal> X-Virus-Checked: Checked by ClamAV on apache.org ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://review.hbase.org/r/98/ ----------------------------------------------------------- (Updated 2010-06-13 00:49:50.977413) Review request for hbase, Todd Lipcon and stack. Changes ------- 1) resolved conflicts from the latest code commits 2) added get/setRegionCachePrefetch() in HTable, removed isRegionCachePrefe= tchEnabled(), enableRegionCachePrefetch(), etc. = 3) in MetaScanner, added Math.min(rowLimit, configuration.getInt(...)) Summary ------- HBASE-2468: Improvements to prewarm META cache on clients. Changes: 1. Add new HTable methods which support region info de/serialation, and reg= ion cache prewarm: = - void serializeRegionInfo(): clients could perform a large scan for all th= e meta for the table, serialize the meta to a file. MR job can ship a copy = of the meta for the table in the DistributedCache - Map deserializeRegionInfo(): MR job can dese= rialize the region info from the DistributedCache = - prewarmRegionCache(Map regionMap): MR job ca= n prewarm local region cache by the deserialized region info. 2. For each client, each region cache read-miss could trigger read-ahead so= me number of rows in META. This option could be turned on and off for one p= articular table. = This addresses bug HBASE-2468. http://issues.apache.org/jira/browse/HBASE-2468 Diffs (updated) ----- src/main/java/org/apache/hadoop/hbase/client/HConnection.java 853164d = src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java 03cb= f8d = src/main/java/org/apache/hadoop/hbase/client/HTable.java 8e47f2d = src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java f11ada7 = src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java 95e4= 94a = Diff: http://review.hbase.org/r/98/diff Testing ------- Unit tests passed locally for me. = Thanks, Mingjie