Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 9044 invoked from network); 8 Dec 2010 01:04:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Dec 2010 01:04:25 -0000 Received: (qmail 65171 invoked by uid 500); 8 Dec 2010 01:04:25 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 65081 invoked by uid 500); 8 Dec 2010 01:04:25 -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 65073 invoked by uid 99); 8 Dec 2010 01:04:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 01:04:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 01:04:23 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB81416K007221 for ; Wed, 8 Dec 2010 01:04:01 GMT Message-ID: <21911938.6181291770241696.JavaMail.jira@thor> Date: Tue, 7 Dec 2010 20:04:01 -0500 (EST) From: "HBase Review Board (JIRA)" To: issues@hbase.apache.org Subject: [jira] Commented: (HBASE-3308) SplitTransaction.splitStoreFiles slows splits a lot In-Reply-To: <16205875.101121291412531470.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969110#action_12969110 ] HBase Review Board commented on HBASE-3308: ------------------------------------------- Message from: stack@duboce.net ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://review.cloudera.org/r/1273/#review2043 ----------------------------------------------------------- Ship it! +1 Minor comment below. /branches/0.90/src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java Why not have an upper bound? If 100 files thats 100 threads doing FS operations. I bet if you had upper bound of 10 on the executorservice, it complete faster than an unbounded executorservice? - stack > SplitTransaction.splitStoreFiles slows splits a lot > --------------------------------------------------- > > Key: HBASE-3308 > URL: https://issues.apache.org/jira/browse/HBASE-3308 > Project: HBase > Issue Type: Improvement > Reporter: Jean-Daniel Cryans > Priority: Critical > Fix For: 0.92.0 > > > Recently I've been seeing some slow splits in our production environment triggering timeouts, so I decided to take a closer look into the issue. > According to my debugging, we spend almost all the time it takes to split on creating the reference files. Each file in my testing takes at least 300ms to create, and averages around 600ms. Since we create two references per store file, it means that a region with 4 store file can easily take up to 5 seconds to split just to create those references. > An intuitive improvement would be to create those files in parallel, so at least it wouldn't be much slower when we're splitting a higher number of files. Stack left the following comment in the code: > {noformat} > // TODO: If the below were multithreaded would we complete steps in less > // elapsed time? St.Ack 20100920 > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.