Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9324D103E7 for ; Tue, 9 Jul 2013 16:25:53 +0000 (UTC) Received: (qmail 5975 invoked by uid 500); 9 Jul 2013 16:25:53 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 5876 invoked by uid 500); 9 Jul 2013 16:25:53 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 5862 invoked by uid 99); 9 Jul 2013 16:25:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 16:25:53 +0000 Date: Tue, 9 Jul 2013 16:25:53 +0000 (UTC) From: "Jean-Marc Spaggiari (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8678) Wrongly delete cells in some case which can not be deleted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-8678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703449#comment-13703449 ] Jean-Marc Spaggiari commented on HBASE-8678: -------------------------------------------- Ok. Found the right place for it. Will do. > Wrongly delete cells in some case which can not be deleted > ---------------------------------------------------------- > > Key: HBASE-8678 > URL: https://issues.apache.org/jira/browse/HBASE-8678 > Project: HBase > Issue Type: Bug > Components: REST > Affects Versions: 0.94.5, 0.95.0 > Environment: CentOS 5.5/hadoop0.20.2/hbase0.94.5/zookeeper3.4.3 > Reporter: Eric Huang > Assignee: Jean-Marc Spaggiari > Attachments: HBASE-8678-v0-trunk.patch, HBASE-8678-v1-trunk.patch, HBASE-8678-v2-0.94.patch, HBASE-8678-v2-trunk.patch > > > First, I put a cell using put interface, but I don't specify timestamp. Then I delete the the same row, specify a timestamp of 1L. Unfortunately, the former cell is > deleted. We should know this cell can not be deleted in this case. (Using original Client API) > Code like this; > public static void main(String[] args) throws Exception { > Cluster cluster = new Cluster(); > cluster.add("10.28.171.38", 8080); > Client client = new Client(cluster); > RemoteHTable table = new RemoteHTable(client, "demotime"); > > Put put = new Put(Bytes.toBytes("row21")); > put.add("info".getBytes(), "name".getBytes(), "huanggang".getBytes()); > table.put(put); > > Delete delete = new Delete(Bytes.toBytes("row21")); > delete.setTimestamp(1L); > table.delete(delete); > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira