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 1273B4395 for ; Fri, 27 May 2011 18:02:19 +0000 (UTC) Received: (qmail 57871 invoked by uid 500); 27 May 2011 18:02:16 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 57845 invoked by uid 500); 27 May 2011 18:02:16 -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 57837 invoked by uid 99); 27 May 2011 18:02:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 18:02:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [38.102.63.181] (HELO smtp-2.01.com) (38.102.63.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 18:02:09 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-2.01.com (Postfix) with ESMTP id 32AE21ADBF6 for ; Fri, 27 May 2011 13:01:48 -0500 (CDT) Received: from smtp-2.01.com ([127.0.0.1]) by localhost (smtp-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hgciu8YW4K6l for ; Fri, 27 May 2011 13:01:48 -0500 (CDT) Received: by smtp-2.01.com (Postfix, from userid 99) id CB6DA1AE2CE; Fri, 27 May 2011 13:01:47 -0500 (CDT) Received: from mail-1.01.com (mail-1.01.com [38.102.63.171]) by smtp-2.01.com (Postfix) with ESMTP id 52C6F1AE135 for ; Fri, 27 May 2011 13:01:47 -0500 (CDT) Date: Fri, 27 May 2011 13:01:46 -0500 (CDT) From: Konstantin Naryshkin To: user@cassandra.apache.org Message-ID: <16397082.257035.1306519306412.JavaMail.root@mail-1.01.com> In-Reply-To: <823796.70461.qm@web28606.mail.ukl.yahoo.com> Subject: Re: pb deletion MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_257034_92695667.1306519306411" X-Originating-IP: [96.237.179.12] X-Mailer: Zimbra 6.0.12_GA_2888 (ZimbraWebClient - FF3.0 (Linux)/6.0.12_GA_2883) ------=_Part_257034_92695667.1306519306411 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit What is the ConsitencyLevel of your reads? A ConsistencyLevel.ONE remove returns when it has deleted the record from at least 1 replica (and any other ones will be deleted when they can). It could be the case that you are deleting the record off of one node and then reading it off of the other one (that has not had the delete propagated to it). Try removing with a ConsistencyLevel.QUORUM or ConsistencyLevel.ALL (same thing in your case). ----- Original Message ----- From: "karim abbouh" To: user@cassandra.apache.org Sent: Friday, May 27, 2011 5:09:08 PM Subject: pb deletion i use cassandra database replicated in two servers,when want to delete a record using this line : client.remove(keyspace, sKey, new ColumnPath(columnFamily), timestamp, ConsistencyLevel.ONE); but when i check,i see that the record still exist! any idea BR ------=_Part_257034_92695667.1306519306411 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Times New Roman; font-size: 12pt; color: #000000'= >What is the ConsitencyLevel of your reads? A ConsistencyLevel.ONE remove = returns when it has deleted the record from at least 1 replica (and any oth= er ones will be deleted when they can). It could be the case that you are d= eleting the record off of one node and then reading it off of the other one= (that has not had the delete propagated to it).

Try removing with a= ConsistencyLevel.QUORUM or ConsistencyLevel.ALL (same thing in your case).=


From: "karim abbouh" <karim_rbt@yahoo.fr= >
To: user@cassandra.apache.org
Sent: Friday, May 27= , 2011 5:09:08 PM
Subject: pb deletion

i use cassandra database replicated in two servers,when wa= nt to delete a record using this line :
client.remove(keyspace, sKey, ne= w ColumnPath(columnFamily), timestamp, ConsistencyLevel.ONE);

but wh= en i check,i see that the record still exist!
any idea

BR
------=_Part_257034_92695667.1306519306411--