Re: atomic test-or-set

2010-10-05 Thread Ian Rogers
On 05/10/2010 16:30, Ryan King wrote: On Tue, Oct 5, 2010 at 8:23 AM, Ian Rogers wrote: Does Cassandra have an atomic test-or-set operation? That is, I want to check to see if a key has a value and, if not, set it to something. But it must be an atomic operation - I can't do a sep

atomic test-or-set

2010-10-05 Thread Ian Rogers
Does Cassandra have an atomic test-or-set operation? That is, I want to check to see if a key has a value and, if not, set it to something. But it must be an atomic operation - I can't do a separate fetch and then set from the application as that creates a possible race condition with anothe

Re: 0.7.0 beta1 to beta2 rolling upgrade error

2010-10-04 Thread Ian Rogers
Ellis wrote: from the Upgrading section of NEWS.txt: The Cassandra inter-node protocol is incompatible with 0.6.x releases (and with 0.7 beta1), meaning you will have to bring your cluster down prior to upgrading On Mon, Oct 4, 2010 at 8:53 AM, Ian Rogers wrote: I've tried to

0.7.0 beta1 to beta2 rolling upgrade error

2010-10-04 Thread Ian Rogers
I've tried to do a rolling upgrade of a 3-node ring from beta1 to beta2 but got the error below. The new node seems to come up fine - I can connect to it with cassandra-cli and see the keyspaces - but it doesn't join the ring. My method was: - stop old cassandra - mv old cassandra dir to new p