Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 87242 invoked from network); 9 Dec 2009 17:11:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Dec 2009 17:11:41 -0000 Received: (qmail 66057 invoked by uid 500); 9 Dec 2009 17:11:41 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 66037 invoked by uid 500); 9 Dec 2009 17:11:41 -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 66027 invoked by uid 99); 9 Dec 2009 17:11:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 17:11:41 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 17:11:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 404F229A0021 for ; Wed, 9 Dec 2009 09:11:18 -0800 (PST) Message-ID: <806290899.1260378678262.JavaMail.jira@brutus> Date: Wed, 9 Dec 2009 17:11:18 +0000 (UTC) From: "Jean-Daniel Cryans (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-2023) Client sync block can cause 1 thread of a multi-threaded client to block all others In-Reply-To: <1335317221.1259706080620.JavaMail.jira@brutus> 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-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788165#action_12788165 ] Jean-Daniel Cryans commented on HBASE-2023: ------------------------------------------- Yes region splits (takes at least 6 seconds in the pre-0.21 architecture) will generate NotServingRegionException from the RS that was holding the parent of the split so if 1 out of 10 threads (so in the same JVM) goes to write to that location then it will block all threads for that time. > Client sync block can cause 1 thread of a multi-threaded client to block all others > ----------------------------------------------------------------------------------- > > Key: HBASE-2023 > URL: https://issues.apache.org/jira/browse/HBASE-2023 > Project: Hadoop HBase > Issue Type: Bug > Affects Versions: 0.20.2 > Reporter: ryan rawson > > Take a highly multithreaded client, processing a few thousand requests a second. If a table goes offline, one thread will get stuck in "locateRegionInMeta" which is located inside the following sync block: > synchronized(userRegionLock){ > return locateRegionInMeta(META_TABLE_NAME, tableName, row, useCache); > } > So when other threads need to find a region (EVEN IF ITS CACHED!!!) it will encounter this sync and wait. > This can become an issue on a busy thrift server (where I first noticed the problem), one region offline can prevent access to all other regions! > Potential solution: narrow this lock, or perhaps just get rid of it completely. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.