cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Haddad <...@jonhaddad.com>
Subject Re: Documentation of batch statements
Date Tue, 03 Mar 2015 22:56:53 GMT
This is often a confusing topic because someone came up with the term ACID,
which lists isolation as well as atomicity, and as a result most people
assume they are independent.  This is incorrect.  For something to be
atomic, it actually requires isolation.

"An operation is atomic if no intermedia states can be observed.  It seems
to jump directly from the initial state to the result state."
- Concepts, Techniques, and Models of Computer Programming By Peter
Van-Roy, Seif Haridi




On Tue, Mar 3, 2015 at 2:30 PM Tyler Hobbs <tyler@datastax.com> wrote:

>
> On Tue, Mar 3, 2015 at 2:39 PM, Jonathan Haddad <jon@jonhaddad.com> wrote:
>
>> Actually, that's not true either.  It's technically possible for a batch
>> to be partially applied in the current implementation, even with logged
>> batches.  "atomic" is used incorrectly here, imo, since more than 2 states
>> can be visible, unapplied & applied.
>
>
> That's a matter of isolation, not atomicity.  Although, with a long enough
> gap between partial and full application, the distinction becomes somewhat
> pedantic, I suppose.
>
>
> --
> Tyler Hobbs
> DataStax <http://datastax.com/>
>

Mime
View raw message