cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Ikeda <anthony.ikeda....@gmail.com>
Subject Re: Local quorum reads
Date Sat, 19 Nov 2011 01:40:54 GMT
No it's not just the cli tool, our app has the same issue coming back with read issues. 

Sent from my iPhone

On 18/11/2011, at 15:04, Peter Schuller <peter.schuller@infidyne.com> wrote:

>> Keyspace: NetworkTopologyStrategy, 1DC, RF=2
>> 
>> 1 node goes down and we cannot read from the ring.
>> 
>> My expectation is that LOCAL_QUORUM dictates that it will return a record once a
majority (N/2 +1) of replicas reports back.
> 
> Yes, the RF and the number of hosts that are up within the replica set
> of the row in question is what matters.
> 
>> 2/2 + 1 = 2
>> 
>> I originally thought N=3 for 3 nodes but someone has corrected me on this that it's
the replicas (2) but when I use the cli, setConsistencyLevel AS LOCAL_QUORUM nothing comes
back. Set it back to ONE I can see the data
>> 
>> Is there somethin I'm missing?
> 
> I don't know, but I am guessing this is just a poor UI issue. The CLI
> is probably getting an Unavailable exception and just giving you
> nothing instead of reporting a problem, but that is speculation on my
> part.
> 
> -- 
> / Peter Schuller (@scode, http://worldmodscode.wordpress.com)

Mime
View raw message