hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Lu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-2120) [Stargate] Unable to delete column families
Date Thu, 14 Jan 2010 01:12:54 GMT

     [ 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.


Mime
View raw message