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 E022F6858 for ; Thu, 4 Aug 2011 17:29:51 +0000 (UTC) Received: (qmail 52855 invoked by uid 500); 4 Aug 2011 17:29:51 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 52799 invoked by uid 500); 4 Aug 2011 17:29:50 -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 52788 invoked by uid 99); 4 Aug 2011 17:29:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 17:29:50 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Camille.Fournier@gs.com designates 204.4.187.100 as permitted sender) Received: from [204.4.187.100] (HELO mxecd09.gs.com) (204.4.187.100) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2011 17:29:39 +0000 X-IronPort-AV: E=Sophos;i="4.67,318,1309752000"; d="scan'208,217";a="216991204" Received: from unknown (HELO mxpbd01-public.ny.fw.gs.com) ([148.86.115.129]) by mxecd09.idz.gs.com with ESMTP; 04 Aug 2011 13:29:18 -0400 From: "Fournier, Camille F." X-sendergroup: RELAYLIST Received: from gshcbdp09ex.firmwide.corp.gs.com ([139.172.27.231]) by mxpbd01.ny.fw.gs.com with ESMTP; 04 Aug 2011 13:29:18 -0400 Received: from GSCMAMP02EX.firmwide.corp.gs.com ([139.172.184.156]) by gshcbdp09ex.firmwide.corp.gs.com ([139.172.27.231]) with mapi; Thu, 4 Aug 2011 13:29:18 -0400 To: "'user@zookeeper.apache.org'" Date: Thu, 4 Aug 2011 13:29:17 -0400 Subject: devops/admin/client question: What do you do when you rollback? Thread-Topic: devops/admin/client question: What do you do when you rollback? Thread-Index: AcxSzAi6NbDQzEfaRLGCBTDqT62UrQ== Message-ID: <69D3016305F9084FBD2C4A0DF189BD5C1770F901E0@GSCMAMP02EX.firmwide.corp.gs.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-retentionstamp: Firmwide Content-Type: multipart/alternative; boundary="_000_69D3016305F9084FBD2C4A0DF189BD5C1770F901E0GSCMAMP02EXfi_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_69D3016305F9084FBD2C4A0DF189BD5C1770F901E0GSCMAMP02EXfi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We had an issue here the other day where the ZK servers were running poorly= , and in an effort to get them healthy again we ended up rolling back the c= luster state. While this was, in retrospect, not the right solution to the = problem we were facing, it brought up another problem. Namely, that many of= our clients couldn't reconnect with their sessions because their zxid was = too high (expected), but that the error they got when trying to do that rec= onnection was just a vanilla disconnected error. The result was that most o= f our clients had to be bounced. Aside from trying hard to avoid ever rolling back the cluster state, does a= nyone have a way they deal with this situation if it occurs? Should we cons= ider enhancing the error message to the client so we could track the fact t= hat we were ahead of the quorum zxid and react sensibly? Alternately, since= we were sending a sessionId along with the zxid, perhaps it would be nice = to check to see if the sessionId exists before checking the zxid, which wou= ld send an expired state signal which my client code could handle cleanly. Any ideas or suggestions would be welcome. C --_000_69D3016305F9084FBD2C4A0DF189BD5C1770F901E0GSCMAMP02EXfi_--