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 7E23DEE8E for ; Thu, 7 Feb 2013 13:56:27 +0000 (UTC) Received: (qmail 74811 invoked by uid 500); 7 Feb 2013 13:56:24 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 74720 invoked by uid 500); 7 Feb 2013 13:56:24 -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 74697 invoked by uid 99); 7 Feb 2013 13:56:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2013 13:56:23 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ajazam@gmail.com designates 209.85.219.43 as permitted sender) Received: from [209.85.219.43] (HELO mail-oa0-f43.google.com) (209.85.219.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2013 13:56:15 +0000 Received: by mail-oa0-f43.google.com with SMTP id l10so2799557oag.16 for ; Thu, 07 Feb 2013 05:55:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=kHyLHyRY1IRtmJh0tTx9n/OmoZmiz9CfjDdaiOcOb1Q=; b=jdCTypSi6zgtDzr2W6C/JS2jbAU0nVXBA6g5CRcvS2/jdxpUDMazAWibZJ+PKcmv7f psEZSr46jr9O04DXn8kbt7rhT27efMa2kuVkIEMkYxJDk3ESDBa5PzVbO4xJUHb+Uovz w+1kOY1SXaj+Mea1EsKVYwFfIekVaiIyU9UelzBJV4dZxTA1TYHdQiakpq/lZIhllExQ RCjCv4DwvdvA/BV6Zh5L8O6XduLuUH/BMKJ2a9JmvaDKcHy5uOLpqZtfWr//hXro8wyo lt9i1CAocaHy0GfWcP30MUU7VIDiudRe8ItG/VODYkpmDrpbo4mrGieQwMtL6wEFIX2L TpTg== MIME-Version: 1.0 X-Received: by 10.182.64.74 with SMTP id m10mr977743obs.61.1360245354548; Thu, 07 Feb 2013 05:55:54 -0800 (PST) Received: by 10.60.1.232 with HTTP; Thu, 7 Feb 2013 05:55:54 -0800 (PST) Date: Thu, 7 Feb 2013 13:55:54 +0000 Message-ID: Subject: Can't remove contents of table with truncate or drop From: Jabbar To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=14dae93b5e362a4f0504d522cd14 X-Virus-Checked: Checked by ClamAV on apache.org --14dae93b5e362a4f0504d522cd14 Content-Type: text/plain; charset=ISO-8859-1 Hello, I'm having problems truncating or deleting the contents of a table. If I truncate the table and then do a select count(*) I get a value above zero. If I drop the table, recreate the table the select count(*) still returns a non zero value. The truncate or delete operation does not return any errors. I am using cassandra 1.2.1 with java 1.6.0 u 39 64 bit in centos 6.3 My keyspace definition is CREATE KEYSPACE studata WITH replication = { 'class': 'SimpleStrategy', 'replication_factor': '3' }; My table definition is CREATE TABLE datapoints ( siteid bigint, channel int, time timestamp, data float, PRIMARY KEY ((siteid, channel), time) ) WITH bloom_filter_fp_chance=0.010000 AND caching='KEYS_ONLY' AND comment='' AND dclocal_read_repair_chance=0.000000 AND gc_grace_seconds=864000 AND read_repair_chance=0.100000 AND replicate_on_write='true' AND compaction={'class': 'SizeTieredCompactionStrategy'} AND compression={'sstable_compression': 'SnappyCompressor'}; It has 3,504,000,000 rows, consisting of 100,000 partition keys. Is there anything that I'm doing wrong? -- Thanks A Jabbar Azam --14dae93b5e362a4f0504d522cd14 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I'm having problems= truncating or deleting the contents of a table. If I truncate the table an= d then do a select count(*) I get a value above zero.
=A0If I= drop the table, recreate the table the select count(*) still returns a non= zero value.

The truncate or delete operation does not return any errors.=

I am using cassandra 1.2.1 with java 1.6.0 u 39 64 bit i= n centos 6.3

My keyspace definition is

CREAT= E KEYSPACE studata WITH replication =3D {
=A0 'class': 'SimpleStrategy',
=A0 'replication_fact= or': '3'
};


My table defini= tion is

CREATE TABLE datapoints (
=A0 siteid bigint,<= br> =A0 channel int,
=A0 time timestamp,
=A0 data float,
=A0 PRIMARY K= EY ((siteid, channel), time)
) WITH
=A0 bloom_filter_fp_chance=3D0.01= 0000 AND
=A0 caching=3D'KEYS_ONLY' AND
=A0 comment=3D'= 9; AND
=A0 dclocal_read_repair_chance=3D0.000000 AND
=A0 gc_grace_seconds=3D864000 AND
=A0 read_repair_chance=3D0.100000 AND<= br>=A0 replicate_on_write=3D'true' AND
=A0 compaction=3D{'cl= ass': 'SizeTieredCompactionStrategy'} AND
=A0 compression=3D= {'sstable_compression': 'SnappyCompressor'};


It has 3,504,000,000=A0 rows, consisting of 100,000 part= ition keys.


Is there anything that I'm= doing wrong?



--
Thanks
=A0A Jabbar Azam
--14dae93b5e362a4f0504d522cd14--