Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 22359 invoked from network); 9 Mar 2010 17:12:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Mar 2010 17:12:19 -0000 Received: (qmail 44555 invoked by uid 500); 9 Mar 2010 17:11:51 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 44280 invoked by uid 500); 9 Mar 2010 17:11:50 -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 44161 invoked by uid 99); 9 Mar 2010 17:11:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Mar 2010 17:11:50 +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; Tue, 09 Mar 2010 17:11:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 416D7234C4BB for ; Tue, 9 Mar 2010 17:11:27 +0000 (UTC) Message-ID: <5654428.157451268154687267.JavaMail.jira@brutus.apache.org> Date: Tue, 9 Mar 2010 17:11:27 +0000 (UTC) From: "stack (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Resolved: (HBASE-2295) Row locks may deadlock with themselves In-Reply-To: <1048844280.110211267832007251.JavaMail.jira@brutus.apache.org> 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-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack resolved HBASE-2295. -------------------------- Resolution: Fixed Fix Version/s: 0.21.0 0.20.4 Hadoop Flags: [Reviewed] Committed to trunk and branch. Thanks for patch Dhruba. > Row locks may deadlock with themselves > -------------------------------------- > > Key: HBASE-2295 > URL: https://issues.apache.org/jira/browse/HBASE-2295 > Project: Hadoop HBase > Issue Type: Bug > Components: regionserver > Reporter: Todd Lipcon > Fix For: 0.20.4, 0.21.0 > > Attachments: rowLockDeadlock.txt, rowLockDeadlock2.txt > > > Row locks in HRegion are keyed by a int-sized hash of the row key. It's perfectly possible for two rows to hash to the same key. So, if any client tries to lock both rows, it will deadlock with itself. Switching to a 64-bit hash is an improvement but still sketchy. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.