You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by karim abbouh <ka...@yahoo.fr> on 2011/05/31 11:21:15 UTC

Re : pb deletion

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 <pe...@infidyne.com>
À : 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: Re : pb deletion

Posted by Jonathan Ellis <jb...@gmail.com>.
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 <ka...@yahoo.fr> 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 <pe...@infidyne.com>
> À : 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