Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BCAF10FD3 for ; Thu, 13 Feb 2014 17:44:24 +0000 (UTC) Received: (qmail 91177 invoked by uid 500); 13 Feb 2014 17:44:19 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 91137 invoked by uid 500); 13 Feb 2014 17:44:19 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 91128 invoked by uid 99); 13 Feb 2014 17:44:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 17:44:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of machielg@gmail.com designates 209.85.215.181 as permitted sender) Received: from [209.85.215.181] (HELO mail-ea0-f181.google.com) (209.85.215.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 17:44:14 +0000 Received: by mail-ea0-f181.google.com with SMTP id k10so3063388eaj.40 for ; Thu, 13 Feb 2014 09:43:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:reply-to :content-transfer-encoding:message-id:references:to; bh=QzoviSjv1Y2pZIhoAF9r29d1RRXQvlliNkVBRIMCHUU=; b=izYTsQcVEgN3XfS6JKwDmC/xZmB5AxtEKh+RKp48/PaR5Ne/lmpNI/0zyQsIm724PH g/wv4KWhDPCOYROxevgB99eLe9m5HlW5soTepa3rayzBKDVMaBXwhp9pvD9kdcfRM75t 6kky8mFg8a6aXP3hczUzdVUqAE4FTYaFzE4K35lQOWbodu3tKXTFnR0bJpop0ozVSr4T 4h319jRP/TAr71y3RV+ygpXLtB8YNgh8v65sSq8N/r2kE4r6K0/RNP0UDU2vaF7oS0/K Iu2W8+rT9KgfhOhWx7jMfK203HVJAS3rzEFJcACdkVSXEa0FZo+Oz6AV0hHi3QFqSR3V MY/w== X-Received: by 10.15.25.1 with SMTP id k1mr66391eeu.111.1392313433428; Thu, 13 Feb 2014 09:43:53 -0800 (PST) Received: from [192.168.0.106] (77-172-205-216.ip.telfort.nl. [77.172.205.216]) by mx.google.com with ESMTPSA id o43sm9394708eef.12.2014.02.13.09.43.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 09:43:52 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: Trying to understand why tombstone is being read From: Machiel Groeneveld In-Reply-To: Date: Thu, 13 Feb 2014 18:43:51 +0100 Reply-To: user@cassandra.apache.org Content-Transfer-Encoding: quoted-printable Message-Id: <1F992FB5-FE68-4308-A86C-4B1AD8A39063@gmail.com> References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1827) X-Virus-Checked: Checked by ClamAV on apache.org We had a similar question, a column inserted with a null value also = results in a tombstone. Also see the (closed) issue about this: https://issues.apache.org/jira/browse/CASSANDRA-6674 On 13 Feb 2014, at 16:35, Adam Patacchiola wrote: > I have a table defined in cql like this: >=20 > CREATE TABLE chatmessages ( > username varchar, > spotname varchar, > id varint, > iv varchar, > fromuser varchar, > fromversion varchar, > touser varchar, > toversion varchar, > datetime timestamp, > data varchar, > mimetype varchar, > datasize int, > shareable boolean, > PRIMARY KEY (username, spotname, id) > ) >=20 > That I insert messages into. Occasionally "rows" are deleted. My = question is why, when I query for a "row" using a select query specific = to only that "row" which contains cells that have never been deleted = such as: >=20 > select * from chatmessages where username=3D'adam' and = spotname=3D'adam:cherie' and id =3D1860; >=20 > Am I seeing in the cqlsh trace that 1 tombstoned cell has been read: >=20 > "Read 1 live and 1 tombstoned cells" >=20 > Thanks for any way you can help increase my understanding of what's = going on here. >=20 > Adam