Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 28766 invoked from network); 25 Sep 2009 20:55:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 20:55:40 -0000 Received: (qmail 53986 invoked by uid 500); 25 Sep 2009 20:55:40 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 53965 invoked by uid 500); 25 Sep 2009 20:55:40 -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 53798 invoked by uid 99); 25 Sep 2009 20:55:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 20:55:40 +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; Fri, 25 Sep 2009 20:55:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 13F9D234C4B7 for ; Fri, 25 Sep 2009 13:55:16 -0700 (PDT) Message-ID: <1769422256.1253912116080.JavaMail.jira@brutus> Date: Fri, 25 Sep 2009 13:55:16 -0700 (PDT) From: "Keith Thomas (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-1869) IndexedTable delete fails when used in conjunction with RowLock() In-Reply-To: <401233015.1253908035992.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-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Keith Thomas updated HBASE-1869: -------------------------------- Attachment: HBASE-1869.patch Patch attached, including extra unit test. Have run the (minor) fix through all tests by invoking 'ant clean test javadoc'. > IndexedTable delete fails when used in conjunction with RowLock() > ----------------------------------------------------------------- > > Key: HBASE-1869 > URL: https://issues.apache.org/jira/browse/HBASE-1869 > Project: Hadoop HBase > Issue Type: Bug > Components: contrib > Affects Versions: 0.20.0 > Environment: Ubunto 9.04 Desktop under VmWare Fusion, Java 1.6.0_16 > Reporter: Keith Thomas > Attachments: HBASE-1869.patch > > > Created the following test in TestIndexedTable, > public void testLockedRowDelete() throws IOException { > writeInitalRows(); > // Delete the first row; > byte[] row = PerformanceEvaluation.format(0); > RowLock lock = table.lockRow(row); > table.delete(new Delete(row, HConstants.LATEST_TIMESTAMP, lock)); > table.unlockRow(lock); > assertRowDeleted(NUM_ROWS - 1); > } > } > which fails and throws the following exception, > java.io.IOException: java.io.IOException: Invalid row lock > at org.apache.hadoop.hbase.regionserver.HRegion.getLock(HRegion.java:1621) > at org.apache.hadoop.hbase.regionserver.HRegion.delete(HRegion.java:1094) > at org.apache.hadoop.hbase.regionserver.tableindexed.IndexedRegion.delete(IndexedRegion.java:269) > at org.apache.hadoop.hbase.regionserver.HRegionServer.delete(HRegionServer.java:2014) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:648) > at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915) > Patch coded, jus going through final testing and packaging. Will attach shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.