You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Chia-Ping Tsai (JIRA)" <ji...@apache.org> on 2017/06/01 07:48:04 UTC

[jira] [Commented] (HBASE-18142) Deletion of a cell deletes the previous versions too

    [ https://issues.apache.org/jira/browse/HBASE-18142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032595#comment-16032595 ] 

Chia-Ping Tsai commented on HBASE-18142:
----------------------------------------

We have the deleteall command for dropping all cells which have the smaller timestamp, so the delete command should only delete the specified cell. We should fix it and add release note to remind users about this change which breaks the compatibility.
Any suggestion?

[~KarthickRam] Are you working on this?

> Deletion of a cell deletes the previous versions too
> ----------------------------------------------------
>
>                 Key: HBASE-18142
>                 URL: https://issues.apache.org/jira/browse/HBASE-18142
>             Project: HBase
>          Issue Type: Bug
>          Components: API
>            Reporter: Karthick
>
> When I tried to delete a cell using it's timestamp in the Hbase Shell, the previous versions of the same cell also got deleted. But when I tried the same using the Java API, then the previous versions are not deleted and I can retrive the previous values.
> https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Delete.java
> see this file to fix the issue. This method (public Delete addColumns(final byte [] family, final byte [] qualifier, final long timestamp)) only deletes the current version of the cell. The previous versions are not deleted.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)