Return-Path: Delivered-To: apmail-hadoop-hbase-issues-archive@minotaur.apache.org Received: (qmail 36063 invoked from network); 9 Mar 2010 08:22:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Mar 2010 08:22:16 -0000 Received: (qmail 20641 invoked by uid 500); 9 Mar 2010 08:21:50 -0000 Delivered-To: apmail-hadoop-hbase-issues-archive@hadoop.apache.org Received: (qmail 20616 invoked by uid 500); 9 Mar 2010 08:21:50 -0000 Mailing-List: contact hbase-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-issues@hadoop.apache.org Delivered-To: mailing list hbase-issues@hadoop.apache.org Received: (qmail 20608 invoked by uid 99); 9 Mar 2010 08:21: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 08:21: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 08:21:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B3D8234C4A9 for ; Tue, 9 Mar 2010 08:21:27 +0000 (UTC) Message-ID: <905442816.150791268122887162.JavaMail.jira@brutus.apache.org> Date: Tue, 9 Mar 2010 08:21:27 +0000 (UTC) From: "dhruba borthakur (JIRA)" To: hbase-issues@hadoop.apache.org Subject: [jira] Updated: (HBASE-2295) Row locks may deadlock with themselves 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 ] dhruba borthakur updated HBASE-2295: ------------------------------------ Attachment: rowLockDeadlock2.txt This patch incorporates Todd's and Stack's comments. And is for hbase trunk. > 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 > 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.