incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Javier Canillas <javier.canil...@gmail.com>
Subject Re: can't re-insert row after deleting it?
Date Thu, 30 Dec 2010 13:43:26 GMT
As Jonathan has told you, Please double check the Timestamp of the column
you are adding the second time. Probably this timestamp is smaller (or
lowerer) than the timestamp given when the deletion happens.

On Thu, Dec 30, 2010 at 1:27 AM, Jonathan Ellis <jbellis@gmail.com> wrote:

> deletes "win" races, so if 3) happens at the same timestamp as 2) then
> the delete takes precedence.
>
> On Wed, Dec 29, 2010 at 9:58 PM, mike dooley <dooley@apple.com> wrote:
> > sorry, i forgot to mention that i am using 0.7-rc2
> >
> > On Dec 29, 2010, at 7:56 PM, mike dooley wrote:
> >
> >> things have not been going very well for me today, so maybe there's
> something
> >> that i'm missing, but here is a little test program that just:
> >>
> >> 1) inserts a single column in a row,
> >> 2) deletes the row,
> >> 3) re-inserts the row
> >>
> >> but it seems that the second insert fails to actually insert the data.
> here is the output
> >> of the test program
> >>
> >> === starting
> >> === inserting row: row-a, value: value-a
> >> === about to retrieve data
> >> === got (dummy-col,value-a)
> >> === deleting row: row-a
> >> === data not found, as expected
> >> === re-inserting row: row-a
> >> === !!!! re-inserted data not found
> >> === crush all boxes
> >>
> >> and subsequent inserts also fail (if you run the program again).
> >>
> >> here is the test program
> >>
> >> <CClient.java>
> >>
> >> i am just using a single node, with the following schema
> >>
> >>  create keyspace Harvest with replication_factor = 1 and
> placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy';
> >>  use Harvest;
> >>  create column family Test1 with column_type = 'Standard' and comparator
> = 'UTF8Type';
> >>
> >> thanks in advance.
> >> -mike
> >
> >
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of Riptano, the source for professional Cassandra support
> http://riptano.com
>

Mime
View raw message