Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97931F5E5 for ; Mon, 29 Apr 2013 15:37:02 +0000 (UTC) Received: (qmail 50770 invoked by uid 500); 29 Apr 2013 15:37:02 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 50742 invoked by uid 500); 29 Apr 2013 15:37:02 -0000 Mailing-List: contact user-help@curator.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.incubator.apache.org Delivered-To: mailing list user@curator.incubator.apache.org Received: (qmail 50734 invoked by uid 99); 29 Apr 2013 15:37:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 15:37:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 15:36:56 +0000 Received: by mail-ob0-f170.google.com with SMTP id eh20so5610143obb.15 for ; Mon, 29 Apr 2013 08:36:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=bf25inqAGSHboUSp7DWuJT8+Vguqe6eEUsfEyiAaAzY=; b=SWfAE3u3TLdTHxbICjtL67JIcqYSsyazjn9GE3IizWoRvZoMmv8A6nTydpW49yhzYF f566YZR1iFat23RO6lud62cy2EmTCxYwEqhFLS2T6PEKR28wneIicbwlAD6njgESA/0z ixaxUknqY0VV+CyZ837szTwq5fjNmCNoBrEStWyNBBJEFVK8RwbgMFnFlVXpw6tAFoOS IQOI0r2Cky7bGOGKP3/8k6cY++r8m3l7LFsJTW70aVWWuUyQpswWKpC+vr+WHZ9pP6og YHuAbnjDUqtkUrrTWGFb3ZU/Frss2IkdRi3yyvss4Ay8dttnBC+FnvEvMPuRPWZVXb8O HSOg== X-Received: by 10.182.44.227 with SMTP id h3mr26260750obm.16.1367249775006; Mon, 29 Apr 2013 08:36:15 -0700 (PDT) Received: from [192.168.1.76] ([76.215.157.85]) by mx.google.com with ESMTPSA id it9sm20487864obb.6.2013.04.29.08.36.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 08:36:14 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: Ensemble Provider best practices From: Jordan Zimmerman In-Reply-To: Date: Mon, 29 Apr 2013 08:36:12 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <176C42DD-FE52-4C4D-9426-A3A57CCF37B9@jordanzimmerman.com> References: To: user@curator.incubator.apache.org X-Mailer: Apple Mail (2.1503) X-Gm-Message-State: ALoCoQl8sdZ0e6VGZWMsalOyELu63LY+MEtlfFp89BO+P6RAbcukBL7gQGCxo6hZLXAroG4aO+5e X-Virus-Checked: Checked by ClamAV on apache.org There is a bug either in Curator or ZooKeeper (I believe it's ZK) that = causes the connection to hang and never reset. I'm working on a solution = (it will be in the Apache version of Curator). So, yes, use = EnsembleProvider. On Apr 26, 2013, at 12:24 PM, Ioannis Canellos = wrote: > Hi, >=20 > I have a case where the ensemble can change (by adding/removing zk = servers) and I wanted to find the best approach on reconfiguring the = curator framework. > It seemed like a good idea to implement my custom ensemble provider, = which would receive updates with the modified connectionString.=20 >=20 > This works fine, if I mark the zookeeper client as lost (so that the = framework can pick the updated connection string from the = EnsembleProvider). > The problem is that after that the ConnectionStateListeners are not = receiving any events for CONNECTED/RECONNECTED etc. >=20 > Is this expected? >=20 > Is there any other approach for changing the connection string, = without recreating the CuratorFramework?=20 >=20 > Thanks in advance. >=20