Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 73433 invoked from network); 14 Jan 2010 01:13:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jan 2010 01:13:18 -0000 Received: (qmail 49424 invoked by uid 500); 14 Jan 2010 01:13:18 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 49384 invoked by uid 500); 14 Jan 2010 01:13:18 -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 49374 invoked by uid 99); 14 Jan 2010 01:13:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jan 2010 01:13:17 +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; Thu, 14 Jan 2010 01:13:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 79CE1234C052 for ; Wed, 13 Jan 2010 17:12:54 -0800 (PST) Message-ID: <1872267991.229271263431574497.JavaMail.jira@brutus.apache.org> Date: Thu, 14 Jan 2010 01:12:54 +0000 (UTC) From: "Greg Lu (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-2120) [Stargate] Unable to delete column families In-Reply-To: <1121340642.228351263429894623.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-2120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Greg Lu updated HBASE-2120: --------------------------- Attachment: HBASE-2120.patch This patch is for the 0.20 branch. You could just apply it by hand to trunk. > [Stargate] Unable to delete column families > ------------------------------------------- > > Key: HBASE-2120 > URL: https://issues.apache.org/jira/browse/HBASE-2120 > Project: Hadoop HBase > Issue Type: Bug > Components: contrib > Affects Versions: 0.20.2 > Environment: Ubuntu, Java build 1.6.0_16-b01 > Reporter: Greg Lu > Attachments: HBASE-2120.patch > > > When trying to delete a column family using Stargate, the following occurs (curl command + Stargate logging): > > curl http://localhost:8080/books/ff417a5b-c4d0-4a43-b1c7-94c356fe0b72/attribute/5426359469582345882 -X DELETE > --- > 10/01/13 18:57:38 DEBUG stargate.RowResource: DELETE http://localhost:8080/books/ff417a5b-c4d0-4a43-b1c7-94c356fe0b72/attribute/5426359469582345882 > 10/01/13 18:57:38 DEBUG stargate.RowResource: DELETE row=ff417a5b-c4d0-4a43-b1c7-94c356fe0b72, ts=9223372036854775807, families={(family=attribute, keyvalues=(ff417a5b-c4d0-4a43-b1c7-94c356fe0b72/attribute:/5426359469582345882/DeleteColumn/vlen=0)} > --- > > curl http://localhost:8080/books/ff417a5b-c4d0-4a43-b1c7-94c356fe0b72/attribute:/5426359469582345882 -X DELETE > --- > 10/01/13 18:57:49 DEBUG stargate.RowResource: DELETE http://localhost:8080/books/ff417a5b-c4d0-4a43-b1c7-94c356fe0b72/attribute:/5426359469582345882 > 10/01/13 18:57:49 DEBUG stargate.RowResource: DELETE row=ff417a5b-c4d0-4a43-b1c7-94c356fe0b72, ts=9223372036854775807, families={(family=attribute, keyvalues=(ff417a5b-c4d0-4a43-b1c7-94c356fe0b72/attribute:/5426359469582345882/DeleteColumn/vlen=0)} > --- > Both are attempting to delete columns instead of the intended action of deleting families. The problem occurs because RowResource.java (line 282) will always return a split of length 2, since RowSpec.java (line 122) appends a colon if it's missing. > I've patched it so that a check will occur if the second split's (split[1]) length is 0 and acts accordingly. I'll attach the patch after I've run it against the test suite. > P.S. It's my first time submitting a patch, so let me know if I screwed anything up. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.