Reads at CL.SERIAL will complete any in-progress paxos writes, so the
behavior you're seeing is expected.

On Mon, Jun 27, 2016 at 1:55 AM, Yuji Ito <y...@imagine-orb.com> wrote:

> Hi,
>
> I'm testing Cassandra CAS operation.
>
> Can a read operation read uncommitted data which is being updated by CAS
> in the following case?
>
> I use Cassandra 2.2.6.
> There are 3 nodes (A, B and C) in a cluster.
> Replication factor of keyspace is 3.
> CAS operation on node A starts to update row X (updating the value in row
> from 0 to 1).
>
> 1. prepare/promise phase succeeds on node A
> 2. node C is down
> 3. read/results phase in node A sends read requests to node B and C and
> waits for read responses from them.
> 4. (unrelated) read operation (CL: SERIAL) reads the same row X and gets
> the value "1" in the row!!
> 5. read/results phase fails by ReadTimeoutException caused by failure of
> node C
>
> Thanks,
> Yuji Ito
>



-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Reply via email to