Re: row level atomicity and isolation

2018-05-16 Thread Rajesh Kishore
ok got it. So, only using LWT txn the updates across nodes for a particular row can be isolated, so basically paxos would ensure serializable isolation Thanks, Rajesh On Wed, May 16, 2018 at 4:56 PM, kurt greaves wrote: > Atomicity and isolation are only guaranteed within a replica. If

Re: row level atomicity and isolation

2018-05-16 Thread kurt greaves
Atomicity and isolation are only guaranteed within a replica. If you have multiple concurrent requests across replicas last timestamp will win. You can get better isolation using LWT which uses paxos under the hood. On 16 May 2018 at 08:55, Rajesh Kishore wrote: > Hi, > > I am just c

row level atomicity and isolation

2018-05-16 Thread Rajesh Kishore
Hi, I am just curious to know when Cassandra doc says the atomicity and isolation is guaranteed for a row. Does it mean, two requests updating a row- "R1" at different replica will be candidate for atomicity and isolation? For instance , I have a setup where RF is 2 I have a client a

Re: Batch : Isolation and Atomicity for same partition on multiple table

2017-12-15 Thread Mickael Delanoë
ra source code, so I could check how all this is > processed ? > > Regards, > Mickaël > > > > 2017-12-13 11:18 GMT+01:00 Nicolas Guyomar : > >> Hi Mickael, >> >> Partition are related to the table they exist in, so in your case, you >> are targeting 2 partiti

Re: Batch : Isolation and Atomicity for same partition on multiple table

2017-12-14 Thread Jeff Jirsa
gt; Does anybody know where I can find, where the batch operations are processed >> in the Cassandra source code, so I could check how all this is processed ? >> >> Regards, >> Mickaël >> >> >> >> 2017-12-13 11:18 GMT+01:00 Nicolas Guyomar : >>> Hi Micka

Re: Batch : Isolation and Atomicity for same partition on multiple table

2017-12-14 Thread Mickael Delanoë
t; Regards, > Mickaël > > > > 2017-12-13 11:18 GMT+01:00 Nicolas Guyomar : > >> Hi Mickael, >> >> Partition are related to the table they exist in, so in your case, you >> are targeting 2 partitions in 2 different tables. >> Therefore, IMHO, you

Re: Batch : Isolation and Atomicity for same partition on multiple table

2017-12-13 Thread Jeff Jirsa
ssandra source code, so I could check how all this is > processed ? > > Regards, > Mickaël > > > > 2017-12-13 11:18 GMT+01:00 Nicolas Guyomar : > >> Hi Mickael, >> >> Partition are related to the table they exist in, so in your case, you >> are tar

Re: Batch : Isolation and Atomicity for same partition on multiple table

2017-12-13 Thread Mickael Delanoë
7-12-13 11:18 GMT+01:00 Nicolas Guyomar : > Hi Mickael, > > Partition are related to the table they exist in, so in your case, you are > targeting 2 partitions in 2 different tables. > Therefore, IMHO, you will only get atomicity using your batch statement > > On 11 December

Re: Batch : Isolation and Atomicity for same partition on multiple table

2017-12-13 Thread Nicolas Guyomar
Hi Mickael, Partition are related to the table they exist in, so in your case, you are targeting 2 partitions in 2 different tables. Therefore, IMHO, you will only get atomicity using your batch statement On 11 December 2017 at 15:59, Mickael Delanoë wrote: > Hello, > > I have a

Batch : Isolation and Atomicity for same partition on multiple table

2017-12-11 Thread Mickael Delanoë
Hello, I have a question regarding batch isolation and atomicity with query using a same partition key. The Datastax documentation says about the batches : "Combines multiple DML statements to achieve atomicity and isolation when targeting a single partition or only atomicity when targ

Re: new question ;-) // RE: understanding batch atomicity

2017-09-29 Thread DuyHai Doan
; Thanks DuyHai ! > > Does anyone know if BATCH provides atomicity for all mutations of a given > partition key for a __single__ table ? > > Or if BATCH provides atomicity for all mutations of a given partition key > for __ALL__ mutated tables into the BATCH ? > > That

Re: new question ;-) // RE: understanding batch atomicity

2017-09-29 Thread Jon Haddad
:59 AM, DE VITO Dominique > wrote: > > Thanks DuyHai ! > > Does anyone know if BATCH provides atomicity for all mutations of a given > partition key for a __single__ table ? > > Or if BATCH provides atomicity for all mutations of a given partition key for > __ALL__

Re: new question ;-) // RE: understanding batch atomicity

2017-09-29 Thread daemeon reiydelle
; > > > Does anyone know if BATCH provides atomicity for all mutations of a given > partition key for a __single__ table ? > > > > Or if BATCH provides atomicity for all mutations of a given partition key > for __ALL__ mutated tables into the BATCH ? > > > > T

new question ;-) // RE: understanding batch atomicity

2017-09-29 Thread DE VITO Dominique
Thanks DuyHai ! Does anyone know if BATCH provides atomicity for all mutations of a given partition key for a __single__ table ? Or if BATCH provides atomicity for all mutations of a given partition key for __ALL__ mutated tables into the BATCH ? That is, in case of : BEGIN BATCH Update

Re: understanding batch atomicity

2017-09-29 Thread DuyHai Doan
All updates here means all mutations == INSERT/UPDATE or DELETE On Fri, Sep 29, 2017 at 5:07 PM, DE VITO Dominique < dominique.dev...@thalesgroup.com> wrote: > Hi, > > > > About BATCH, the Apache doc https://cassandra.apache.org/ > doc/latest/cql/dml.html?

understanding batch atomicity

2017-09-29 Thread DE VITO Dominique
Hi, About BATCH, the Apache doc https://cassandra.apache.org/doc/latest/cql/dml.html?highlight=atomicity says : "The BATCH statement group multiple modification statements (insertions/updates and deletions) into a single statement. It serves several purposes: ... All updates in a

Re: Cassandra atomicity/isolation/transaction in multithread counter updates

2012-06-17 Thread aaron morton
the other will "redo" the write in memory. The order this occurs in is irrelevant. Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 16/06/2012, at 7:37 PM, Manuel Peli wrote: > I'm in a pseudo-deadlock about Cassandra a

Cassandra atomicity/isolation/transaction in multithread counter updates

2012-06-16 Thread Manuel Peli
I'm in a pseudo-deadlock about Cassandra and atomicity/isolation/transaction arguments. My simple question is: what happens when two (or more) threads try to update (increment) the same integer column value of the same row in a column family? I've read something about row-level isolat

Re: atomicity of a row write

2012-01-24 Thread Sylvain Lebresne
is written and col 'B' fails, my > client > receives an error, but col 'A' is actually persisted and becomes visible to > other clients? No. You could however get into a situation where your client receives an error but A *and* B are actually persisted. I.e, the atomicity

atomicity of a row write

2012-01-23 Thread Guy Incognito
hi all, having read: http://wiki.apache.org/cassandra/FAQ#batch_mutate_atomic i would like some clarification: is a write to a single row key in a single column family atomic in the sense that i can do a batch mutate where i 1) write col 'A' to key 'B' 2) write 'col 'C' to key 'B' and eithe

Re: Question about sharding of rows and atomicity

2011-10-05 Thread Konstantin Naryshkin
happens while the write is being done it is possible that only some of the columns will have the new values. - Original Message - From: "Don Smith" To: user@cassandra.apache.org Sent: Wednesday, October 5, 2011 2:09:36 PM Subject: Question about sharding of rows and atomicity Does

Re: Question about sharding of rows and atomicity

2011-10-05 Thread Jonathan Ellis
On Wed, Oct 5, 2011 at 1:09 PM, Don Smith wrote: > Does Cassandra shard the columns of a single row across multiple nodes so > that to read the columns of the row it may need access to multiple nodes? > I'd say "no." Correct. >   Will a read from a given node ever return partial results or > is

Question about sharding of rows and atomicity

2011-10-05 Thread Don Smith
Does Cassandra shard the columns of a single row across multiple nodes so that to read the columns of the row it may need access to multiple nodes? I'd say "no." Will a read from a given node ever return partial results or is the write to a node of a row atomic? Thanks, Don

Re: Atomicity Strategies

2011-06-22 Thread AJ
what they did with locking (based on the examples) was to achieve a level of transaction isolation http://en.wikipedia.org/wiki/Isolation_(database_systems)<http://en.wikipedia.org/wiki/Isolation_%28database_systems%29> I think the issue here is more about atomicity http://wiki.apac

Re: Atomicity Strategies

2011-06-22 Thread aaron morton
ples) was >> to achieve a level of transaction isolation >> http://en.wikipedia.org/wiki/Isolation_(database_systems) >> <http://en.wikipedia.org/wiki/Isolation_%28database_systems%29> >> >> I think the issue here is more about atomicity >> http://wiki.apa

Re: Atomicity Strategies

2011-06-22 Thread AJ
think the issue here is more about atomicity http://wiki.apache.org/cassandra/FAQ#batch_mutate_atomic We cannot guarantee that all or none of the mutations in your batch are completed. There is some work in this area though https://issues.apache.org/jira/browse/CASSANDRA-1684 Just to be clea

Re: Atomicity of batch updates

2011-06-16 Thread aaron morton
> Sent: Wednesday, 15 June 2011 7:42 AM > Subject: Atomicity of batch updates > > Hi, > Wiki says that write operation is atomic within ColumnFamily > (http://wiki.apache.org/cassandra/ArchitectureOverview chapter “write > properties”). > If I use batch update for sing

Re: Atomicity of batch updates

2011-06-15 Thread chovatia jaydeep
: "user@cassandra.apache.org" Cc: Andrey Lomakin Sent: Wednesday, 15 June 2011 7:42 AM Subject: Atomicity of batch updates Hi, Wiki says that write operation is atomic within ColumnFamily (http://wiki.apache.org/cassandra/ArchitectureOverview chapter “write properties”). If I use ba

Atomicity of batch updates

2011-06-15 Thread Artem Orobets
Hi, Wiki says that write operation is atomic within ColumnFamily (http://wiki.apache.org/cassandra/ArchitectureOverview chapter "write properties"). If I use batch update for single CF, and get an exception in last mutation operation, is it means that all previous operation will be reverted. If

Re: Atomicity Strategies

2011-04-10 Thread Roland Gude
id with locking (based on the examples) was to achieve a level of transaction isolation <http://en.wikipedia.org/wiki/Isolation_(database_systems)> http://en.wikipedia.org/wiki/Isolation_(database_systems) I think the issue here is more about atomicity <http://wiki.apache.org/cas

Re: Atomicity Strategies

2011-04-09 Thread aaron morton
My understanding of what they did with locking (based on the examples) was to achieve a level of transaction isolation http://en.wikipedia.org/wiki/Isolation_(database_systems) I think the issue here is more about atomicity http://wiki.apache.org/cassandra/FAQ#batch_mutate_atomic We cannot

Re: Atomicity Strategies

2011-04-08 Thread Dan Washusen
t; > I'm interested in this too, but I don't think this can be done with > > Cassandra alone. Cassandra doesn't support transactions. I think hector can > > retry operations, but I'm not sure about the atomicity of the whole thing. > > > > > > >

Re: Atomicity Strategies

2011-04-08 Thread Alex Araujo
On 4/8/11 5:46 PM, Drew Kutcharian wrote: I'm interested in this too, but I don't think this can be done with Cassandra alone. Cassandra doesn't support transactions. I think hector can retry operations, but I'm not sure about the atomicity of the whole thing. On Apr

Re: Atomicity Strategies

2011-04-08 Thread Drew Kutcharian
I'm interested in this too, but I don't think this can be done with Cassandra alone. Cassandra doesn't support transactions. I think hector can retry operations, but I'm not sure about the atomicity of the whole thing. On Apr 8, 2011, at 1:26 PM, Alex Araujo wrote: >

Atomicity Strategies

2011-04-08 Thread Alex Araujo
Hi, I was wondering if there are any patterns/best practices for creating atomic units of work when dealing with several column families and their inverted indices. For example, if I have Users and Groups column families and did something like: Users.insert( user_id, columns ) UserGroupTimel

Re: atomicity in cassandra

2011-03-28 Thread Narendra Sharma
ing lists regarding > atomicity when using batch_mutate() operations. I understand that the > operations in batch_mutate() should be idempotent and do not get rolled back > on failures. However, a client crashing (due to machine issues, networking > issue etc) in the middle of such a

atomicity in cassandra

2011-03-28 Thread Saurabh Sehgal
I have seen this question pop up once or twice in mailing lists regarding atomicity when using batch_mutate() operations. I understand that the operations in batch_mutate() should be idempotent and do not get rolled back on failures. However, a client crashing (due to machine issues, networking

Re: atomicity

2010-12-19 Thread Aaron Morton
ache.org > Sent: Mon, 20 December, 2010 12:05:17 AM > Subject: Re: atomicity > >> Say I have two processes on separate machines, and a Cassandra cluster over >> several machines. If the first process writes (insert) to a column while the >> second process reads (get

Re: atomicity

2010-12-19 Thread Kevin Irwig
Thanks a lot, Peter. K. - Original Message From: Peter Schuller To: user@cassandra.apache.org Sent: Mon, 20 December, 2010 12:05:17 AM Subject: Re: atomicity > Say I have two processes on separate machines, and a Cassandra cluster over > several machines. If the first process

Re: atomicity

2010-12-19 Thread Peter Schuller
> Say I have two processes on separate machines, and a Cassandra cluster over > several machines. If the first process writes (insert) to a column while the > second process reads (get / get_slice / get_range_slices / others?) from that > column (say the consistency level is QUORUM if that makes a

Re: atomicity

2010-12-19 Thread Adi
On Sat, Dec 18, 2010 at 11:02 PM, Kevin Irwig wrote: > Hi, > > Say I have two processes on separate machines, and a Cassandra cluster over > several machines. If the first process writes (insert) to a column while > the > second process reads (get / get_slice / get_range_slices / others?) from >

atomicity

2010-12-18 Thread Kevin Irwig
Hi, Say I have two processes on separate machines, and a Cassandra cluster over several machines. If the first process writes (insert) to a column while the second process reads (get / get_slice / get_range_slices / others?) from that column (say the consistency level is QUORUM if that makes a

Re: batch_mutate atomicity

2010-08-09 Thread Peter Schuller
> I am using the familiar meanings from ACID: > > atomic means either the entire update will succeed or none of it. > > isolated means other threads will not see partial updates while it is > being applied. A related concern is whether there is a write *ordering* guarantee for mutations within a r

Re: batch_mutate atomicity

2010-08-07 Thread Benjamin Black
The first. On Sat, Aug 7, 2010 at 10:04 AM, james anderson wrote: > good afternoon; > > On 2010-08-07, at 15:26 , Jonathan Ellis wrote: > >> I am using the familiar meanings from ACID: >> >> atomic means either the entire update will succeed or none of it. >> >> isolated means other threads will

Re: batch_mutate atomicity

2010-08-07 Thread james anderson
good afternoon; On 2010-08-07, at 15:26 , Jonathan Ellis wrote: I am using the familiar meanings from ACID: atomic means either the entire update will succeed or none of it. isolated means other threads will not see partial updates while it is being applied. yes, those terms are not new. i

Re: batch_mutate atomicity

2010-08-07 Thread Jonathan Ellis
I am using the familiar meanings from ACID: atomic means either the entire update will succeed or none of it. isolated means other threads will not see partial updates while it is being applied. On Sat, Aug 7, 2010 at 12:50 AM, james anderson wrote: > good morning; > > On 2010-08-07, at 02:45 ,

Re: batch_mutate atomicity

2010-08-06 Thread james anderson
good morning; On 2010-08-07, at 02:45 , Jonathan Ellis wrote: Everything in the same key of a batch_mutate is atomic. (But not isolated.) what does the distinction mean in the context of cassandra? is it that the execution of an operation with the same key could see the effect of the 'f

Re: batch_mutate atomicity

2010-08-06 Thread Jonathan Ellis
Everything in the same key of a batch_mutate is atomic. (But not isolated.) On Fri, Aug 6, 2010 at 2:15 PM, B. Todd Burruss wrote: > ok i just saw the FAQ > (http://wiki.apache.org/cassandra/FAQ#batch_mutate_atomic) > > follow up question ... > > it states that "As a special case, mutations agai

Re: batch_mutate atomicity

2010-08-06 Thread B. Todd Burruss
ok i just saw the FAQ (http://wiki.apache.org/cassandra/FAQ#batch_mutate_atomic) follow up question ... it states that "As a special case, mutations against a single key are atomic, but more generally no" ... i interpret that to also mean " .. mutations against a single key in the same CF ... "

batch_mutate atomicity

2010-08-06 Thread B. Todd Burruss
if i am using batch_mutate to update/insert two columns in the same CF and same key, is this an atomic operation? i understand that an operation on a single key in a CF is atomic, but not sure if the above scenario boils down to two operations or considered one operation. thx

Re: Understanding atomicity in Cassandra

2010-07-20 Thread Alex Yiu
Hi, Patricio, It's hard to comment on your original questions without knowing details of your own domain specific data model and data processing expectation. W.R.T. lumping things into one big row, there is a limitation on data model in Cassandra. You got CF and SCF. That is, you have only 2 leve

Re: Understanding atomicity in Cassandra

2010-07-20 Thread Jonathan Ellis
2010/7/20 Patricio Echagüe : > Would it be bad design to store all the data that need to be > consistent under one big key? That really depends how unnatural it is from a query perspective. :) -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Ca

Re: Understanding atomicity in Cassandra

2010-07-20 Thread Patricio Echagüe
e-writing any part that succeeded will >> be harmless. >> >> On Thu, Jul 8, 2010 at 11:13 AM, Stuart Langridge >> wrote: >> > Hi, Cassandra people! >> > >> > We're looking at Cassandra as a possible replacement for some parts of >> > o

Re: Understanding atomicity in Cassandra

2010-07-19 Thread Alex Yiu
retry the operation. re-writing any part that succeeded will > be harmless. > > On Thu, Jul 8, 2010 at 11:13 AM, Stuart Langridge > wrote: > > Hi, Cassandra people! > > > > We're looking at Cassandra as a possible replacement for some parts of > > our database s

Re: Understanding atomicity in Cassandra

2010-07-09 Thread Jonathan Ellis
ement for some parts of > our database structures, and on an early look I'm a bit confused about > atomicity guarantees and rollbacks and such, so I wanted to ask what > standard practice is for dealing with the sorts of situation I outline > below. > > Imagine that we

Understanding atomicity in Cassandra

2010-07-08 Thread Stuart Langridge
Hi, Cassandra people! We're looking at Cassandra as a possible replacement for some parts of our database structures, and on an early look I'm a bit confused about atomicity guarantees and rollbacks and such, so I wanted to ask what standard practice is for dealing with the sorts of s