Re: Inconsistency when unit testing

2010-04-08 Thread Jonathan Ellis
Your first step should be upgrading to 0.6. On Wed, Apr 7, 2010 at 10:38 AM, Philip Jackson wrote: > At Wed, 7 Apr 2010 17:29:49 +0200, > Sylvain Lebresne wrote: >> >> Use ConsistencyLevel.QUORUM when you write *and* when you read. > > I already do (plus, I only test with one node). > > BTW, I'm

Re: Inconsistency when unit testing

2010-04-07 Thread Philip Jackson
At Wed, 7 Apr 2010 17:29:49 +0200, Sylvain Lebresne wrote: > > Use ConsistencyLevel.QUORUM when you write *and* when you read. I already do (plus, I only test with one node). BTW, I'm on 0.5.0, if that makes any difference. Cheers, Phil

Re: Inconsistency when unit testing

2010-04-07 Thread Sylvain Lebresne
Use ConsistencyLevel.QUORUM when you write *and* when you read. On Wed, Apr 7, 2010 at 5:26 PM, Philip Jackson wrote: > Hi, > > To summarise my app; > >  * try to get item from UserUrl cf >   * if not found then check in the Url cf to see if we have fetched >     url before and add to UserUrl. >

Inconsistency when unit testing

2010-04-07 Thread Philip Jackson
Hi, To summarise my app; * try to get item from UserUrl cf * if not found then check in the Url cf to see if we have fetched url before and add to UserUrl. * else, fetch the url and its details put in Url and UserUrl The unit tests covering this shouldn't hit the else as they put wha