You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Greg Lu (JIRA)" <ji...@apache.org> on 2010/01/14 04:35:54 UTC

[jira] Reopened: (HBASE-2024) [stargate] deletes not working as expected

     [ https://issues.apache.org/jira/browse/HBASE-2024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Lu reopened HBASE-2024:
----------------------------

      Assignee: Greg Lu

After resolving HBASE-2120, I realized what's causing this problem.

In RowResource.java (line 274), the Delete object is instantiated without the timestamp argument, even if one was specified. This will prevent any whole row deletes to occur if your database uses a custom timestamp format.

I've created a patch for both trunk and the 0.20 branch.

> [stargate] deletes not working as expected
> ------------------------------------------
>
>                 Key: HBASE-2024
>                 URL: https://issues.apache.org/jira/browse/HBASE-2024
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: Andrew Purtell
>            Assignee: Greg Lu
>            Priority: Minor
>             Fix For: 0.20.3, 0.21.0
>
>         Attachments: HBASE-2024_0.20.3.patch, HBASE-2024_trunk.patch
>
>
> From private communication, an example:
> {noformat}
> hbase(main):051:0> get 'books', 'fe80a1eb-2b3c-4995-8630-4131ef4b4eb7'
> COLUMN                       CELL                                                                             
>  attribute:author            timestamp=5410348784985219840, value=\001Richard Matheson                        
>  attribute:description       timestamp=5410348784985219840, value=\001The most clever and riveting vampire nov
>                              el since Dracula.                                                                
>  attribute:links             timestamp=5410348784985219840, value=--- []\n\n                                  
>  attribute:title             timestamp=5410348784985219840, value=\001I Am Legend                             
>  log:change                  timestamp=5410348784985219840, value=--- []\n\n                                  
> 5 row(s) in 0.0070 seconds
>  
> ==========
>  
> > curl http://localhost:8080/books/fe80a1eb-2b3c-4995-8630-4131ef4b4eb7
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><CellSet><Row key="ZmU4MGExZWItMmIzYy00OTk1LTg2MzAtNDEzMWVmNGI0ZWI3"><Cell timestamp="5410348784985219840" column="YXR0cmlidXRlOmF1dGhvcg==">AVJpY2hhcmQgTWF0aGVzb24=</Cell><Cell timestamp="5410348784985219840" column="YXR0cmlidXRlOmRlc2NyaXB0aW9u">AVRoZSBtb3N0IGNsZXZlciBhbmQgcml2ZXRpbmcgdmFtcGlyZSBub3ZlbCBzaW5jZSBEcmFjdWxhLg==</Cell><Cell timestamp="5410348784985219840" column="YXR0cmlidXRlOmxpbmtz">LS0tIFtdCgo=</Cell><Cell timestamp="5410348784985219840" column="YXR0cmlidXRlOnRpdGxl">AUkgQW0gTGVnZW5k</Cell><Cell timestamp="5410348784985219840" column="bG9nOmNoYW5nZQ==">LS0tIFtdCgo=</Cell></Row></CellSet>
>  
> > curl -X DELETE -v http://localhost:8080/books/fe80a1eb-2b3c-4995-8630-4131ef4b4eb7
> * About to connect() to localhost port 8080 (#0)
> *   Trying ::1... connected
> * Connected to localhost (::1) port 8080 (#0)
> > DELETE /books/fe80a1eb-2b3c-4995-8630-4131ef4b4eb7 HTTP/1.1
> > User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.10
> > Host: localhost:8080
> > Accept: */*
> > 
> < HTTP/1.1 200 OK
> < Content-Length: 0
> < 
> * Connection #0 to host localhost left intact
> * Closing connection #0
>  
> > curl http://localhost:8080/books/fe80a1eb-2b3c-4995-8630-4131ef4b4eb7             
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><CellSet><Row key="ZmU4MGExZWItMmIzYy00OTk1LTg2MzAtNDEzMWVmNGI0ZWI3"><Cell timestamp="5410348784985219840" column="YXR0cmlidXRlOmF1dGhvcg==">AVJpY2hhcmQgTWF0aGVzb24=</Cell><Cell timestamp="5410348784985219840" column="YXR0cmlidXRlOmRlc2NyaXB0aW9u">AVRoZSBtb3N0IGNsZXZlciBhbmQgcml2ZXRpbmcgdmFtcGlyZSBub3ZlbCBzaW5jZSBEcmFjdWxhLg==</Cell><Cell timestamp="5410348784985219840" column="YXR0cmlidXRlOmxpbmtz">LS0tIFtdCgo=</Cell><Cell timestamp="5410348784985219840" column="YXR0cmlidXRlOnRpdGxl">AUkgQW0gTGVnZW5k</Cell><Cell timestamp="5410348784985219840" column="bG9nOmNoYW5nZQ==">LS0tIFtdCgo=</Cell></Row></CellSet>
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.