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 6DA0B178B6 for ; Wed, 26 Aug 2015 09:32:10 +0000 (UTC) Received: (qmail 92096 invoked by uid 500); 26 Aug 2015 09:32:08 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 92050 invoked by uid 500); 26 Aug 2015 09:32:07 -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 92037 invoked by uid 99); 26 Aug 2015 09:32:07 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 09:32:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 252DEC028F for ; Wed, 26 Aug 2015 09:32:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id kmF8mivaqOFZ for ; Wed, 26 Aug 2015 09:32:06 +0000 (UTC) Received: from mail-io0-f182.google.com (mail-io0-f182.google.com [209.85.223.182]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3C12242B92 for ; Wed, 26 Aug 2015 09:32:06 +0000 (UTC) Received: by iods203 with SMTP id s203so11754676iod.0 for ; Wed, 26 Aug 2015 02:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=POq20JeI/VuofLiE7aQHHVMyHuKDHmi+mEfITdBZ0kI=; b=C/awDNMV7KkBZH9gO/U1ncejulHZdDv1MMV2asIYDPkTYWXQmzoqNf+47QlRd/MtdC unvlScTll9O/OJ7io4Dad1pRRv7b4OssSQuOUmcb3rqCHDaU0Mu3N+ZKnIVwmyvYWS2r fbwO1oc5nAiQ9oD84hRUD7xW6iDnuECvuLX4PPwTm2gKr8RqIGpRo+cie14zYYSPblWz Sesqhxhf/o2pi2xLMFr8ywUd7pnniurTsLWk9i3t+QxBPPtsUjtouNNl5iMO2tJLtfpt Yh4jg5VbMdNRZ2MUVza7KtQd3Xe5Ss3Vg/AR41QW1aW4bnYupx2DghD4Bj60zDDCQZTt 2niQ== MIME-Version: 1.0 X-Received: by 10.107.3.169 with SMTP id e41mr2201355ioi.113.1440581525827; Wed, 26 Aug 2015 02:32:05 -0700 (PDT) Received: by 10.79.13.145 with HTTP; Wed, 26 Aug 2015 02:32:05 -0700 (PDT) Date: Wed, 26 Aug 2015 15:02:05 +0530 Message-ID: Subject: Zookeeper number of re-tries From: Prabhjot Bharaj To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a113ed5541df964051e3386f3 --001a113ed5541df964051e3386f3 Content-Type: text/plain; charset=UTF-8 Hello Folks, I have a simple question on zookeeper client. If I have 10 clients and all of them try to get a lock and all of them fail (lets say because of some temporary network glitch), then, all of them will retry. If the number of retries for each client is 3, then it results in a total of 30 retries (in the worst case) Considering another case where the request to get lock fails for the first time for all 10 clients, but after that, one of the clients gets the lock while others were still trying. In this case, will other clients still try for the remaning number of times ? Or should they exit out with a negative response ? Regards, Prabhjot --001a113ed5541df964051e3386f3--