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" <karim_...@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 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 

Reply via email to