From user-return-12068-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu Aug 15 01:40:54 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 BEA4A1802C7 for ; Thu, 15 Aug 2019 03:40:53 +0200 (CEST) Received: (qmail 24275 invoked by uid 500); 15 Aug 2019 01:40:52 -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 24263 invoked by uid 99); 15 Aug 2019 01:40:52 -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 01:40:52 +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 D41DA180C7B for ; Thu, 15 Aug 2019 01:40:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.62 X-Spam-Level: * X-Spam-Status: No, score=1.62 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, RCVD_IN_MSPIKE_H2=-0.18, 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-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tL6w7s6vp9cR for ; Thu, 15 Aug 2019 01:40:50 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.194; helo=mail-qk1-f194.google.com; envelope-from=ted.dunning@gmail.com; receiver= Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id D1B2ABC7B3 for ; Thu, 15 Aug 2019 01:40:49 +0000 (UTC) Received: by mail-qk1-f194.google.com with SMTP id p13so668110qkg.13 for ; Wed, 14 Aug 2019 18:40:49 -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=45k8NlT1tH8jLakZILmDfjxeH4k2iy97zcQ5H6eZX0o=; b=VHX3l3lQAR23/lxRpAKgmM7i3zLc2SbU6bNQ+Kjbwbvk54pvSoo73RgPxcZkGLiTgm i6ZwrVt0McZkvc5gtQzIaqwzzqWHxH8ovItA2OVgx4MBJqPNeD36woWsBD2sSRglEwiR f8GYoLSFX7JD6RNpB6sD/Q26vu6gNI0OrY/aEeK9L9/OHX917ejmgcrUyZE/2Fmm6dwV M0AuO4UsijDD6Op1BvLKFCyEhk2kHtpHTXPfHp0RDNIBfBSKFZdbPIt+blcExUEbXYFs nglWF5/4pnZ4oQia3cnZuQ2YktHOfDb+idxwdTTy5jDqUuJNzDPRVpoD9zhHPAsVfchR xgmg== 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=45k8NlT1tH8jLakZILmDfjxeH4k2iy97zcQ5H6eZX0o=; b=SmzN9sgqZiPprdXSGXbLurQl/4pwUBjN4KVW05EYuPKxKwBxp6zbrUeXvq/MhIq9Kl wE0Fhx569ElYK3I9jvE9ZE1v3RBo49jaWHvmIhS8FJebCHjLolilhA54j6/1mX0Symx+ HLDsPOlTCsfvxDtOazHGah1qCiNslS4QiiuEbAq0WNbInsAXmrxmu+o9HcawTYQHCHY5 cP87lzxZpNoSlAfInaryKo3f6QbnffWDShwI4A6xZ2p9VNh3gPJzlNCLrbbTmRa7iC94 byioaMmKoqNuO9D9C0Cc/eGhBnKOxK5gVRAncqtFXm8ny7IFx4B2axJnAepTQudqiYsH 68cg== X-Gm-Message-State: APjAAAWgbfClaMK0YueqhVxA03Em6fS3IRqqBgtzkr0Hy2Ye1Jm8g2rZ vk+cPhWXKs6vSpY/tAbkCCBjPx5w5E/CIPOctRxAVhs= X-Google-Smtp-Source: APXvYqxRkx2WmrSayoF79Uo00Mi2BYcDS2KKSRR3BHq18WAyRvTQ1JnLNjcqyu6bikccskmWgG8jioyE08y1Ilcz3BY= X-Received: by 2002:ae9:ed94:: with SMTP id c142mr2072385qkg.70.1565833249153; Wed, 14 Aug 2019 18:40:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ted Dunning Date: Wed, 14 Aug 2019 18:40:12 -0700 Message-ID: Subject: Re: create or setData in transaction? To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="00000000000097e64405901df65c" --00000000000097e64405901df65c Content-Type: text/plain; charset="UTF-8" The multi op is atomic (all other operations will be before or after teh 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 seems 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. > > --00000000000097e64405901df65c--