Re: Question on Eventual Consistency

2010-07-19 Thread F. Hugo Zwaal
It's the previous value. I've checked. Groets, Hugo. On 20 jul 2010, at 00:19, Aaron Morton wrote: When the test fails what value does the verify array have ? Is it null or a previous value? Aaron On 20 Jul, 2010,at 08:22 AM, Hugo wrote: See my test case attached below. In my setup it u

Re: Question on Eventual Consistency

2010-07-19 Thread Aaron Morton
When the test fails what value does the verify array have ? Is it null or a previous value?AaronOn 20 Jul, 2010,at 08:22 AM, Hugo wrote: See my test case attached below. In my setup it usually fails around the 800th try... import java.util.ArrayList; import java.util.Arrays; import java.u

Re: Question on Eventual Consistency

2010-07-19 Thread Hugo
See my test case attached below. In my setup it usually fails around the 800th try... import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import me.prettyprint.cassandra.service.CassandraClient; imp

Re: Question on Eventual Consistency

2010-07-19 Thread Ran Tavory
On Mon, Jul 19, 2010 at 10:43 PM, Peter Schuller < peter.schul...@infidyne.com> wrote: > > I'm using CL=QUORUM (=Hector default) for both reads and writes. Most of > the > > times, the test passes, but sometimes it fails because I get back the old > > value. Since the test is single-threaded, I gu

Re: Question on Eventual Consistency

2010-07-19 Thread Peter Schuller
> I'm using CL=QUORUM (=Hector default) for both reads and writes. Most of the > times, the test passes, but sometimes it fails because I get back the old > value. Since the test is single-threaded, I guess it is a bug. I'll try to > reduce the test to something smaller that can be used for trouble

Re: Question on Eventual Consistency

2010-07-19 Thread Hugo
I'm using CL=QUORUM (=Hector default) for both reads and writes. Most of the times, the test passes, but sometimes it fails because I get back the old value. Since the test is single-threaded, I guess it is a bug. I'll try to reduce the test to something smaller that can be used for troubleshoo

Re: Question on Eventual Consistency

2010-07-19 Thread Ran Tavory
if your test case is correct then it sounds like a bug to me. With one node, unless you're writing with CL=0 you should get full consistency. On Mon, Jul 19, 2010 at 10:14 PM, Hugo wrote: > Hi, > > Being fairly new to Cassandra I have a question on the eventual > consistency. I'm currently perfo

Question on Eventual Consistency

2010-07-19 Thread Hugo
Hi, Being fairly new to Cassandra I have a question on the eventual consistency. I'm currently performing experiments with a single-node Cassandra system and a single client. In some of my tests I perform an update to an existing subcolumn in a row and subsequently read it back from the same