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 230FE9E65 for ; Tue, 6 Mar 2012 08:02:37 +0000 (UTC) Received: (qmail 5786 invoked by uid 500); 6 Mar 2012 08:02:36 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 5615 invoked by uid 500); 6 Mar 2012 08:02:32 -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 5594 invoked by uid 99); 6 Mar 2012 08:02:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 08:02:32 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jzimmerman@netflix.com designates 69.53.237.162 as permitted sender) Received: from [69.53.237.162] (HELO exout101.netflix.com) (69.53.237.162) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 08:02:26 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=s1024;d=netflix.com; h=from:to:subject:date:message-id:references:in-reply-to:content-type :mime-version; bh=s0Mlo1LHE06Dt4qYeeLRuszhgbc=; b=LlqaJhGsVVj6jPnr9bCzsaWnMOv5sOvADgFHkLp3bKG1KHWseGiWtkqk+T3CPBtj2KjBhmjg unUn3iViOLXSt0p5Tbnmhv7HLF90945PiNqnNl/iRtD7H0vmeeCB7RblSFfb/fBo5Ep8y0lg 9NyIheQaElVZObRbouxuerjdVFo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024;d=netflix.com; h=from:to:subject:date:message-id:references:in-reply-to:content-type :mime-version; b=cvnHZKhH2JIkBStXUn4wg1cs5hty83dED2dBhn5XhD0k6jj6pkMMlbze9cIDFdCqmzYvbyxP s9jagjFdNmssGlFNDiv0vB9rDApWM6btmE+fiX5a6wd4UHulDMC0ISwXPEidPERd69+mFliJ NcJnim1fT6CSeNJdMATNeOFpQT0= Received: from EXFE104.corp.netflix.com (10.64.32.104) by exout101.netflix.com (10.64.240.73) with Microsoft SMTP Server (TLS) id 8.3.192.1; Tue, 6 Mar 2012 00:02:01 -0800 Received: from EXMB107.corp.netflix.com ([169.254.7.30]) by exfe104.corp.netflix.com ([10.64.32.104]) with mapi id 14.01.0323.003; Tue, 6 Mar 2012 00:02:04 -0800 From: Jordan Zimmerman To: "user@zookeeper.apache.org" Subject: RE: Are curator framework consumers single threaded? Thread-Topic: Are curator framework consumers single threaded? Thread-Index: AQHM+1BLhrcH4ek7y0CPYcbQtX55uJZc53QU Date: Tue, 6 Mar 2012 08:02:04 +0000 Message-ID: References: ,<08BF7E6B-DCC9-48C8-BDCF-097D8A56C496@gmail.com> In-Reply-To: <08BF7E6B-DCC9-48C8-BDCF-097D8A56C496@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.64.32.82] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org The ListenerContainer for PathChildrenCache allows you to pass an Executor = along with your listener. So, that will give you the desired behavior. Dist= ributedQueue is _supposed_ to allow this as well, but it looks like it does= n't. I view that as a bug. If you don't mind, please post an issue on this = here:=0A= =0A= https://github.com/Netflix/curator/issues=0A= =0A= -JZ=0A= =0A= ________________________________________=0A= From: Amirhossein Kiani [amirhkiani@gmail.com]=0A= Sent: Monday, March 05, 2012 8:18 PM=0A= To: user@zookeeper.apache.org=0A= Subject: Are curator framework consumers single threaded?=0A= =0A= Hi Jordan,=0A= =0A= First of all, thanks a lot for all the great work on Curator! I have starte= d using it and it is amazingly simplifying my code!=0A= =0A= I have just ran into this issue recently that I am using a Distributed Queu= e, a Path Cache and a Distributed Double Barrier in my code, and having som= e difficulties. I'm trying to run everything with the test framework Curato= r provides and it seems like when I enter() the barrier in one of my object= s the other one (that is using a different client) is also blocked.=0A= Is there a way to have the Queue consumer object as well as Event listeners= for the Path Cache start in new threads?=0A= =0A= Many thanks,=0A= Amir=0A=