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 5281D1735A for ; Mon, 27 Jul 2015 10:40:10 +0000 (UTC) Received: (qmail 29535 invoked by uid 500); 27 Jul 2015 10:40:04 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 29482 invoked by uid 500); 27 Jul 2015 10:40:04 -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 29467 invoked by uid 99); 27 Jul 2015 10:40:04 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2015 10:40:04 +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 BCFB8190BCC for ; Mon, 27 Jul 2015 10:40:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.031 X-Spam-Level: X-Spam-Status: No, score=-0.031 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id SwY_AoFx6WVV for ; Mon, 27 Jul 2015 10:40:02 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [119.145.14.65]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id E88692312F for ; Mon, 27 Jul 2015 10:40:01 +0000 (UTC) Received: from 172.24.1.48 (EHLO szxeml425-hub.china.huawei.com) ([172.24.1.48]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CPJ10678; Mon, 27 Jul 2015 18:36:48 +0800 (CST) Received: from szxeml561-mbx.china.huawei.com ([169.254.5.175]) by szxeml425-hub.china.huawei.com ([10.82.67.180]) with mapi id 14.03.0158.001; Mon, 27 Jul 2015 18:36:43 +0800 From: Rakesh R To: "user@zookeeper.apache.org" , "liangdong01@baidu.com" Subject: RE: Doubts about libzookeeper Thread-Topic: Doubts about libzookeeper Thread-Index: AQHQyFTfPJDE0AjABE6gWhnp2PL/K53vHGTQ Date: Mon, 27 Jul 2015 10:36:42 +0000 Message-ID: References: , , <2015072718123325172427@baidu.com> In-Reply-To: <2015072718123325172427@baidu.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.215.232] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected >>>>>> 2) I sends "delete /path", the request reaches zkserver-1 In your case, I assume there is no disturbance to the quorum status. Once t= he requests reaches zkserver-1, the request will be passed to the Leader se= rver and it will perform the user requested delete operation(Active Messagi= ng phase - http://zookeeper.apache.org/doc/r3.4.1/zookeeperInternals.html#s= c_activeMessaging). >>>>>> 3) reconnect the same session to zkserver-2, and I sends "get /path= ". You will hit "not exists" Regards, Rakesh -----Original Message----- From: liangdong01@baidu.com [mailto:liangdong01@baidu.com]=20 Sent: 27 July 2015 15:43 To: user@zookeeper.apache.org Subject: Doubts about libzookeeper Hi, I'm thinking about a program desgin with libzookeeper, here is my doub= ts: 1) first, I connnect to zkserver-1, and there exists the path "/path". 2) I sends "delete /path", the request reaches zkserver-1 and dont't kn= ow whether this effected, and then lost connection before response returns. 3) reconnect the same session to zkserver-2, and I sends "get /path". =20 which one will the "get /path" return possibly: 1, "not exists"=20 2, "exists" and "always exists" 3, "exists" and "not exists" afterwards thanks very much ~ =20