Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 C21A9108F8 for ; Tue, 5 Nov 2013 19:38:35 +0000 (UTC) Received: (qmail 84019 invoked by uid 500); 5 Nov 2013 19:38:35 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 83994 invoked by uid 500); 5 Nov 2013 19:38:35 -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 83986 invoked by uid 99); 5 Nov 2013 19:38:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 19:38:35 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [160.83.84.98] (HELO nyginsmp04.us.db.com) (160.83.84.98) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 19:38:29 +0000 Received: from USTLMDBG008.us.db.com (USTLMDBG008.us.db.com [10.249.250.30]) by nyginsmp04.us.db.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id rA5Jc7F9026399 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 5 Nov 2013 19:38:08 GMT Received: from ustlcdbg001.US.DB.COM ([169.254.2.61]) by USTLMDBG008.us.db.com ([10.249.250.30]) with mapi; Tue, 5 Nov 2013 13:38:08 -0600 From: Adrian Osullivan To: "user@zookeeper.apache.org" Date: Tue, 5 Nov 2013 13:38:06 -0600 Subject: RE: Sync question Thread-Topic: Sync question Thread-Index: Ac7aXlxiL0dL3tS4QmO7niH4vYgnawAABAgw Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-version: 3.5.10.6 x-tituslabs-classifications-30: TLPropertyRoot=db.com;Classification=External Communication; x-tituslabs-classificationhash-30: VgNFIFU9Hx+/nZJb9Kg7Iq+82jlyWJjExFDS43fJsIdsQTatDn4RyRVX9jmU8tHxdno/8FD5r++OCJid+QYFV5+2tSiZVVrtQJGjmkFAemj6lnmg+GZvBfv7Ck1tszMxnk5U1NDDx+8PnFF3AuFjPjaiwHM9WsOtIVTH+qVwUDNBF8rkvtbc9bufKOjWCfpsxlHaImNwbPeCUu0tpCAS7w== acceptlanguage: en-US x-trailer: Yes Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Thanks, just wanted to confirm that. Some of the things you read about sync= seem to suggest the next client read will be up to date but this is not st= rictly true. This isn't a fault of course, but by design. -----Original Message----- From: Jordan Zimmerman [mailto:jordan@jordanzimmerman.com] Sent: Tuesday, November 05, 2013 2:36 PM To: user@zookeeper.apache.org Subject: Re: Sync question > So it seems there is no mechanism is zookeeper for guaranteeing a read is= truly up to date with the leader. Is this true? ZooKeeper is an eventually consistent system, not an ACID system. So, true. On Nov 5, 2013, at 11:31 AM, Adrian Osullivan wro= te: > Hi everyone! The zk API's sync() method brings the server up to date wit= h the leader. So the next client read should give the up to date value. B= ut in the time between completing the sync and starting the read, another c= lient may have sent an update and the server one is connected to may again = lag the leader. So it seems there is no mechanism is zookeeper for guarant= eeing a read is truly up to date with the leader. Is this true? > > --- > This communication may contain confidential and/or privileged information= . If you are not the intended recipient (or have received this communicatio= n in error) please notify the sender immediately and destroy this communica= tion. Any unauthorized copying, disclosure or distribution of the material = in this communication is strictly forbidden. > > Deutsche Bank does not render legal or tax advice, and the information co= ntained in this communication should not be regarded as such. --- This communication may contain confidential and/or privileged information. = If you are not the intended recipient (or have received this communication = in error) please notify the sender immediately and destroy this communicati= on. Any unauthorized copying, disclosure or distribution of the material in= this communication is strictly forbidden. Deutsche Bank does not render legal or tax advice, and the information cont= ained in this communication should not be regarded as such.