From user-return-12072-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu Aug 15 05:22:06 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id A86601802C7 for ; Thu, 15 Aug 2019 07:22:06 +0200 (CEST) Received: (qmail 55086 invoked by uid 500); 15 Aug 2019 05:22:05 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 55070 invoked by uid 99); 15 Aug 2019 05:22:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Aug 2019 05:22:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8DA5F180C7B for ; Thu, 15 Aug 2019 05:22:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id UVhvqlld9NZJ for ; Thu, 15 Aug 2019 05:22:02 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::730; helo=mail-qk1-x730.google.com; envelope-from=ted.dunning@gmail.com; receiver= Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 86AA47D3FB for ; Thu, 15 Aug 2019 05:22:01 +0000 (UTC) Received: by mail-qk1-x730.google.com with SMTP id 201so973071qkm.9 for ; Wed, 14 Aug 2019 22:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WklE0eIALp6wU4gfmQYv+E28dO6+geNYNYJ7ldMqTeQ=; b=K42ImCIMuaJNc6PBvbbV0dg9EQsiT762Fp+/AZS70Unf6KScFNEWkAiv+t4T7AopV0 q5zCgyfuKPVqQf/y3ZuZe1/Q4bCbOOxdDz8EkvqkRjV4aKvxjG93qTuuh4mR5RYKpHjg LJ1Rh0s92IpjZsy3u8QcDjyrCEy8x+apNV/gpxPQ+/mlaDic8DiX+7kv4Q7Jx+RL3u95 OEx/MQyu7KJ68fiuFJ2pczjBVuwqeKyRrtdIAD21NlZ94/nJ1X700mIO1xK1Fix9EM9W Y5zghDq72ELBXQTNdztHlP1v+xUlIyEUW5GyUR7F92TBQNToT08ETtKPdxZJr0FvUj22 IjBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=WklE0eIALp6wU4gfmQYv+E28dO6+geNYNYJ7ldMqTeQ=; b=IRswSa1ZAhR9OFC5EZj0HElBs6Oj8clG6Gh6vWJOmTRCAkYxFXqOpHSr/ZVTLXSVUM z85uieIsPDDVdWEbp7vV+RhpRoqHgIXSmHlJe8lJcDqeSf7sp9QimZmyGtPsliR9dk4X 7frsZV7L1RdO+RpdQafb9qQutev8TKj7Idh69PVydJd24j5zRZPEFJnLRDnu4q51GelL 8LFN0pi/fSI63MejN3omi9LsXCSJaFM3UmwQ/MACpPs3QLzllk4pxeFJ8L7pX/fJOVBa kCEOg4S/ovfm0sMMvg6p63Twpg4kmVj73xAiMZkACm+obkycAWQZ5f3+pQDxapeQz9AQ /xhA== X-Gm-Message-State: APjAAAXTU4Iu8oz1DRGXf+nBtuaObEPeomMYsPawB1DQxyj/hvR4YcYR 1Dfo2btiqVWJmN9fTp4chd3XI0SvFowPFCPvr1wJ9MY= X-Google-Smtp-Source: APXvYqwxagsp4tVlOVfez793FKiaZXNOYA1YbMmUXxw52R26q0dSyB/quF7p4oN2lp1j/wYFY/0XgTwOZVOnqbWOFnc= X-Received: by 2002:a05:620a:693:: with SMTP id f19mr2598635qkh.189.1565846514048; Wed, 14 Aug 2019 22:21:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ted Dunning Date: Wed, 14 Aug 2019 22:21:16 -0700 Message-ID: Subject: Re: create or setData in transaction? To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="0000000000003e24690590210de4" --0000000000003e24690590210de4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable As Michael correctly said, isolation only makes sense when you allow concurrent queries. Of the four ACID properties, the multi op satisfies A, C and D while I is essentially irrelevant (or could be said to be trivially satisfied since there are no concurrent queries. On Wed, Aug 14, 2019 at 6:45 PM Zili Chen wrote: > Thanks for your reply Ted. > > I cannot understand the statement "That leaves isolated which is kind of > hard to talk about with ZK since all operations are fast and sequential." > well. Could you explain a bit? What is "that" means and where is the "har= d" > comes from? > > Best, > tison. > > > Ted Dunning =E4=BA=8E2019=E5=B9=B48=E6=9C=8815=E6= =97=A5=E5=91=A8=E5=9B=9B =E4=B8=8A=E5=8D=889:40=E5=86=99=E9=81=93=EF=BC=9A > > > The multi op is atomic (all other operations will be before or after te= h > > multi), consistent (all viewers will see all the effects or none, and > > durable (because ZK is linearized anyway). > > > > That leaves isolated which is kind of hard to talk about with ZK since > all > > operations are fast and sequential. > > > > On Wed, Aug 14, 2019 at 3:12 PM Michael Han wrote: > > > > > ... > > > Ted can correct me if I am wrong, since he added the multi op feature= , > > but > > > my understanding is "multi op" is branded from day one as the > transaction > > > support for zookeeper (we even provide an API with exact name: > > > Transaction). If we use the traditional semantic for transaction in > > > database context, the ACID properties multi-op satisfies at least > > atomicity > > > and durability. So saying zookeeper does not support transaction seem= s > a > > > strong argument that against the properties of multi-op and existing > > > literatures related to zookeeper. On the other side, typically bulk > > > operations does not support atomicity, which will not take care of > > rolling > > > back failed operations. > > > > > > > > > > > > > --0000000000003e24690590210de4--