Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E6FE174C3 for ; Tue, 3 Mar 2015 22:58:17 +0000 (UTC) Received: (qmail 66778 invoked by uid 500); 3 Mar 2015 22:58:04 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 66730 invoked by uid 500); 3 Mar 2015 22:58:04 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 66713 invoked by uid 99); 3 Mar 2015 22:58:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 22:58:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jonathan.haddad@gmail.com designates 209.85.218.53 as permitted sender) Received: from [209.85.218.53] (HELO mail-oi0-f53.google.com) (209.85.218.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 22:58:00 +0000 Received: by oifz81 with SMTP id z81so2451765oif.0 for ; Tue, 03 Mar 2015 14:56:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=i4LP/DKKXLK2G/r4T/so2I6ARnO8plTPwlkLpFxNA2M=; b=JsY5wnwkYFEil68jq2pJ/f50VE7toA31d2z7CLV1cY/+7H2MWZT9KwDZRu0454k+gT f1vb+4no2EidD509gdiSKKW32wsReO6AvaXPHfB4PC/uAysmdv2Vr2IpbHSVdq34hRzP YBZqX/f1SFKF/Mw//T8rtYmlilKmdOUrvk5r8TV4AngPuOdMllqN70Z8b5cQDRTGYHIk VUTjVs+LiIdGKLMCbxNkzuvBdIM1FjE8JxqXPmTrW9MrwNFUC+ad6wnYBv71nDeqYqhE cLkUBn8SUIFnIhJNu8b0zObrSWfsTnBDsHtWczYb+U+Bwwn5PEBY1b3sqtgrNfdks+Hh /q9g== X-Received: by 10.202.97.130 with SMTP id v124mr946363oib.34.1425423414744; Tue, 03 Mar 2015 14:56:54 -0800 (PST) MIME-Version: 1.0 References: From: Jonathan Haddad Date: Tue, 03 Mar 2015 22:56:53 +0000 Message-ID: Subject: Re: Documentation of batch statements To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a113d59664a7d4405106a40b9 X-Virus-Checked: Checked by ClamAV on apache.org --001a113d59664a7d4405106a40b9 Content-Type: text/plain; charset=UTF-8 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 wrote: > > On Tue, Mar 3, 2015 at 2:39 PM, Jonathan Haddad 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 > --001a113d59664a7d4405106a40b9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is often a confusing topic because someone came up wi= th the term ACID, which lists isolation as well as atomicity, and as a resu= lt most people assume they are independent.=C2=A0 This is incorrect.=C2=A0 = For something to be atomic, it actually requires isolation. =C2=A0

=
"An operation is atomic if no intermedia states can be obse= rved.=C2=A0 It seems to jump directly from the initial state to the result = state."=C2=A0
-=C2=A0Concepts, Techniques, and Models of Com= puter Programming=C2=A0By Peter Van-Roy, Seif Haridi


=


On Tue, Mar 3, 20= 15 at 2:30 PM Tyler Hobbs <tyler@d= atastax.com> wrote:

On Tue, Mar 3,= 2015 at 2:39 PM, Jonathan Haddad <jon@jonhaddad.com> wrote:=
Actually, that's not true either.=C2= =A0 It's technically possible for a batch to be partially applied in th= e current implementation, even with logged batches. =C2=A0"atomic"= ; is used incorrectly here, imo, since more than 2 states can be visible, u= napplied & applied.

=
That's a matter of isolation, not atomicity.= =C2=A0 Although, with a long enough gap between partial and full applicatio= n, the distinction becomes somewhat pedantic, I suppose.


--
= Tyler Hobbs
DataStax
<= /div>
--001a113d59664a7d4405106a40b9--