Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7CE895A3 for ; Tue, 22 Nov 2011 18:45:04 +0000 (UTC) Received: (qmail 11672 invoked by uid 500); 22 Nov 2011 18:45:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 11575 invoked by uid 500); 22 Nov 2011 18:45:04 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 11482 invoked by uid 99); 22 Nov 2011 18:45:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 18:45:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2011 18:45:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6295497BD0 for ; Tue, 22 Nov 2011 18:44:40 +0000 (UTC) Date: Tue, 22 Nov 2011 18:44:40 +0000 (UTC) From: "Jonathan Ellis (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1890140051.3437.1321987480422.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2081335423.42200.1321594551717.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3505) tombstone appears after truncate 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/CASSANDRA-3505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155336#comment-13155336 ] Jonathan Ellis commented on CASSANDRA-3505: ------------------------------------------- Thanks for tracking that down, Yuki. I'll put together a patch. > tombstone appears after truncate > -------------------------------- > > Key: CASSANDRA-3505 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3505 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.3 > Reporter: Cathy Daw > Assignee: Jonathan Ellis > Fix For: 1.0.4 > > > This bug is regarding the select after the 'truncate'. In 1.0.1 no rows would ever be returned, but now we are seeing a tombstone when querying for user1. Jake mentioned this may be related to CASSANDRA-2855. > {code} > cqlsh> CREATE KEYSPACE ks1 with > ... strategy_class = > ... 'org.apache.cassandra.locator.SimpleStrategy' > ... and strategy_options:replication_factor=1; > > cqlsh> use ks1; > cqlsh:ks1> > cqlsh:ks1> CREATE COLUMNFAMILY users ( > ... KEY varchar PRIMARY KEY, password varchar, gender varchar, > ... session_token varchar, state varchar, birth_year bigint); > cqlsh:ks1> INSERT INTO users (KEY, password) VALUES ('user1', 'ch@ngem3a'); > cqlsh:ks1> UPDATE users SET gender = 'm', birth_year = '1980' WHERE KEY = 'user1'; > cqlsh:ks1> SELECT * FROM users WHERE key='user1'; > KEY | birth_year | gender | password | > user1 | 1980 | m | ch@ngem3a | > cqlsh:ks1> TRUNCATE users; > // Expected, no rows returned > cqlsh:ks1> SELECT * FROM users WHERE key='user1'; > KEY | > user1 | > // Expected, no rows returned > cqlsh:ks1> SELECT * FROM users; > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira