Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 22356 invoked from network); 17 Jul 2010 01:30:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Jul 2010 01:30:07 -0000 Received: (qmail 99024 invoked by uid 500); 17 Jul 2010 01:30:07 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 98925 invoked by uid 500); 17 Jul 2010 01:30:06 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 98917 invoked by uid 99); 17 Jul 2010 01:30:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jul 2010 01:30:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vishalmlst@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jul 2010 01:29:59 +0000 Received: by fxm16 with SMTP id 16so1827867fxm.35 for ; Fri, 16 Jul 2010 18:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=1zRHP4Z/CxF43nnoNF4tblbTUWfteuJwKofR00MOeJc=; b=W0Cpla9fZaqzlOerjKZKq2ugOjoDsqRrfRTrlSZIWogEJxNAlzOw3B3jDO721XYo+s qrEkJ3miXlEHrW+0R7phqMk6ajSSerCITmlYbZRDZzXQnXmv5T1x0Rke9KW6ew2Z3AuZ bR1v9WUOuhl89Cf3+6A3kVqukAElmSBDEgGxA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=d46aBJ6Kb5u8kUvoukpV3Bydubtdf5sHM3QC1YYhYMTu/1ao3xqwJoQs3O6aTPoww5 kESdE/5bva/K2LPgel2KPhbw6OsduNl6mf5v8KxqndU89UYaq3mTkxurVv2No/4aKwgN Cze5q2+HUM0p51JkpplkzRn0WPn7pEp0B9ejo= MIME-Version: 1.0 Received: by 10.239.153.201 with SMTP id a9mr120813hbc.70.1279330118789; Fri, 16 Jul 2010 18:28:38 -0700 (PDT) Received: by 10.239.163.131 with HTTP; Fri, 16 Jul 2010 18:28:38 -0700 (PDT) Date: Fri, 16 Jul 2010 21:28:38 -0400 Message-ID: Subject: cleanup ZK takes 40-60 seconds From: Vishal K To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001485f4506847e958048b8b4191 X-Virus-Checked: Checked by ClamAV on apache.org --001485f4506847e958048b8b4191 Content-Type: text/plain; charset=ISO-8859-1 Hi, We have embedded ZK server in our application. We start a thread in our application and call QuorumPeerMain.InitializeArgs(). When cleaning-up ZK we call QuorumPeerMain.shutdown() and wait for the thread that is calling InitializeArgs() to finish. These two steps are taking around 60 seconds. I could probably not wait for InitializeArgs() to finish and that might speed up things. However, I am not sure why the cleanup should take such a long time. Can anyone comment on this? Thanks. -Vishal --001485f4506847e958048b8b4191--