Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 41899 invoked from network); 16 Oct 2009 01:36:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 01:36:54 -0000 Received: (qmail 39339 invoked by uid 500); 16 Oct 2009 01:36:54 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 39262 invoked by uid 500); 16 Oct 2009 01:36:54 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 39250 invoked by uid 99); 16 Oct 2009 01:36:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 01:36:54 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 01:36:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4420C234C045 for ; Thu, 15 Oct 2009 18:36:31 -0700 (PDT) Message-ID: <1323688335.1255656991274.JavaMail.jira@brutus> Date: Thu, 15 Oct 2009 18:36:31 -0700 (PDT) From: "ryan rawson (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-1910) IndexedRegion RPC deadlock In-Reply-To: <16316536.1255656751283.JavaMail.jira@brutus> 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-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ryan rawson updated HBASE-1910: ------------------------------- Fix Version/s: 0.22.0 > IndexedRegion RPC deadlock > -------------------------- > > Key: HBASE-1910 > URL: https://issues.apache.org/jira/browse/HBASE-1910 > Project: Hadoop HBase > Issue Type: Bug > Affects Versions: 0.20.1, 0.21.0 > Reporter: Andrew Purtell > Fix For: 0.22.0 > > > From Tatsuya Kawano up on hbase-user@ > {quote} > 50 client threads who try to put millions of records, autoFlush(false), flushCommits() on every 5,000 put. After inserting about 3 million records, a deadlock occurred on a region server who has both the table and index regions loaded. > I have attached a full thread dump of the deadlocked region server, and you can see IPC Server handlers are blocked in org.apache.hadoop.hbase.regionserver.tableindexed.IndexedRegion.updateIndex(). > I found the flowing FIXME comment on updateIndex() method, and it seems this is the deadlock I'm having. > {code} > // FIXME: This call takes place in an RPC, and requires an RPC. This makes for > // a likely deadlock if the number of RPCs we are trying to serve is >= the > // number of handler threads. > private void updateIndex(IndexSpecification indexSpec, byte[] row, > SortedMap columnValues) throws IOException { > {code} > I use HBase 0.20.1 and my region servers were running with 10 RPC handler threads on each (default). > Maybe you can workaround this by adding more RPC handlers (increase the value of "hbase.regionserver.handler.count" in hbase-site.xml) > {quote} > Opening this issue to track the FIXME. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.