Re: Re : pb deletion

2011-05-31 Thread Jonathan Ellis
You're using a lower timestamp granularity in your app. The standard
is to use microseconds (not milliseconds!) since epoch. The cli and
any of the mainstream clients adhere to this.

On Tue, May 31, 2011 at 4:21 AM, karim abbouh  wrote:
> i see that the problem happens when i try to remove records from my
> application but these records were created before from CLI.
> is there a explication for this?
>
> 
> De : Peter Schuller 
> À : user@cassandra.apache.org
> Envoyé le : Vendredi 27 Mai 2011 19h05
> Objet : Re: 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!
>
> Are you using a "real" timestamp such that the deletion is stamped
> higher than the insertion?
>
> --
> / Peter Schuller
>
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com


Re : pb deletion

2011-05-31 Thread karim abbouh
i see that the problem happens when i try to remove records from my application 
but these records were created before from CLI.
is there a explication for this?




De : Peter Schuller 
À : user@cassandra.apache.org
Envoyé le : Vendredi 27 Mai 2011 19h05
Objet : Re: 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!

Are you using a "real" timestamp such that the deletion is stamped
higher than the insertion?

--
/ Peter Schuller

Re: pb deletion

2011-05-27 Thread Peter Schuller
> 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!

Are you using a "real" timestamp such that the deletion is stamped
higher than the insertion?

--
/ Peter Schuller


Re: pb deletion

2011-05-27 Thread Konstantin Naryshkin
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 

pb deletion

2011-05-27 Thread karim abbouh
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