Re: Batch isolation within a single partition

2015-05-19 Thread Martin Krasser
2 *An:* user@cassandra.apache.org *Betreff:* Batch isolation within a single partition Hello, I have an application that inserts multiple rows within a single partition (= all rows share the same partition key) using a BATCH statement. Is it possible that other clients can partially read that batch or

Re: Batch isolation within a single partition

2015-05-19 Thread Martin Krasser
On 19.05.15 10:04, Sylvain Lebresne wrote: On Tue, May 19, 2015 at 9:42 AM, DuyHai Doan > wrote: If RF > 1, the consistency level at QUORUM cannot guarantee strict isolation (for normal mutation or batch). If you look at this slide: http://www.slid

Re: Batch isolation within a single partition

2015-05-19 Thread Stefan Podkowinski
isolation> guarantees as any single write operation on that key. Von: Martin Krasser [mailto:krass...@googlemail.com] Gesendet: Montag, 18. Mai 2015 12:32 An: user@cassandra.apache.org Betreff: Batch isolation within a single partition Hello, I have an application that inserts multiple rows wit

Re: Batch isolation within a single partition

2015-05-19 Thread Sylvain Lebresne
On Tue, May 19, 2015 at 9:42 AM, DuyHai Doan wrote: > If RF > 1, the consistency level at QUORUM cannot guarantee strict > isolation (for normal mutation or batch). If you look at this slide: > http://www.slideshare.net/doanduyhai/cassandra-introduction-apache-con-2014-budapest/25, > you can see

Re: Batch isolation within a single partition

2015-05-19 Thread DuyHai Doan
If RF > 1, the consistency level at QUORUM cannot guarantee strict isolation (for normal mutation or batch). If you look at this slide: http://www.slideshare.net/doanduyhai/cassandra-introduction-apache-con-2014-budapest/25, you can see that the mutation is sent by the coordinator, in parallel, to

Re: Batch isolation within a single partition

2015-05-18 Thread Martin Krasser
Hi DuyHai, thanks for your answer. What if I set RF > 1 and the consistency level for reads and writes to QUORUM? Would that isolate the single-partition batch update from reads? (I do not consider node failures here between the write and the read(s)). On 19.05.15 07:50, DuyHai Doan wrote:

Re: Batch isolation within a single partition

2015-05-18 Thread DuyHai Doan
Hello Martin If, and only if you have RF=1, single partition mutations (including batches) are isolated. Otherwise, with RF>1, even a simple UPDATE is not isolated because one client can read the updated value on one replica and another client reads the old value on another replica On Mon, May

Batch isolation within a single partition

2015-05-18 Thread Martin Krasser
Hello, I have an application that inserts multiple rows within a single partition (= all rows share the same partition key) using a BATCH statement. Is it possible that other clients can partially read that batch or is the batch application isolated i.e. other clients can only read all rows o