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 4E8FB19B03 for ; Tue, 26 Apr 2016 00:14:15 +0000 (UTC) Received: (qmail 55779 invoked by uid 500); 26 Apr 2016 00:14:14 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 55725 invoked by uid 500); 26 Apr 2016 00:14:14 -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 55707 invoked by uid 99); 26 Apr 2016 00:14:13 -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; Tue, 26 Apr 2016 00:14:13 +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 4F4DC180517 for ; Tue, 26 Apr 2016 00:14:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.052 X-Spam-Level: X-Spam-Status: No, score=-0.052 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=sargun.me Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cx_ovKPaC1hv for ; Tue, 26 Apr 2016 00:14:12 +0000 (UTC) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5DA015FAC3 for ; Tue, 26 Apr 2016 00:14:12 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id x19so60300925oix.2 for ; Mon, 25 Apr 2016 17:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sargun.me; s=google; h=mime-version:date:message-id:subject:from:to; bh=TCwR38kjsB971yrJ2vQLq7B62WfCl7p4SiL4i4uJtFI=; b=XjsNHcFyPT4FM+7X0tPgAp0trgDnw13uFlHI81jkaE/SmwQgOWDPNw5ZloHCNdhmBD 8ZOqh34MdEmO/txC625+uhkptWnv8iYfd4hSuc53OYgYCeEY7qroaInPc9jUnK74tpdc 2XDnbIMfp+d3RgznFEdZeYDvOOfn3qPxHJZxw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=TCwR38kjsB971yrJ2vQLq7B62WfCl7p4SiL4i4uJtFI=; b=KXQsT/JtnXZIW3+59pemhiQRUqwKF3WdBsuhuKHCzBXvQN3iw3zU+Y9W8enBZMLDgA 5Xa3dVRIMM9W928ke9sJFc+FTLTCoZkfPTJZ8/dFEf1CXNHYMwCCQlH4MkFt6rxTj9wx wfZqTQvJCTjULZspR2JGv2tSTGESX7z2KoW9NzPmNX+5++jiaYxEH/BOv5uIE9KjDnQA 9GXeQXCSItCoEo9uYarnVSxw7JaJzL4h9/0rH4G+dPaxEIx86m//ezXYV57LHhJg9E53 6ek52IEZiFb5Rjj+AiQeIYeft3WJ8I8xB6O0qCP0xznVy6NiKYWeCwpMWZynHMY05CR1 I8uw== X-Gm-Message-State: AOPr4FWeGrhoG0+BTTca+GrSOX8S9tKNrX/ReGJukPfVUX3RefG0734iVAzLQm3lyDc9x1D2tSps2cexO2BBTw== MIME-Version: 1.0 X-Received: by 10.157.5.100 with SMTP id 91mr16938310otw.38.1461629651310; Mon, 25 Apr 2016 17:14:11 -0700 (PDT) Received: by 10.157.17.35 with HTTP; Mon, 25 Apr 2016 17:14:11 -0700 (PDT) Date: Mon, 25 Apr 2016 17:14:11 -0700 Message-ID: Subject: Zookeeper C client reconnect From: Sargun Dhillon To: user@zookeeper.apache.org Content-Type: text/plain; charset=UTF-8 I'm consuming the zookeeper mt C client. I'm unsure of what the behaviour I should take when there is a Zookeeper failure, or interacting with Zookeeper in general. According to the documentation I've read, I should initiate reconnection to Zookeeper if the client fails. It seems like the client automatically does this. Am I mistaken? What part of the reconnection logic is my responsibility vs. the client's?