From zookeeper-user-return-128-apmail-hadoop-zookeeper-user-archive=hadoop.apache.org@hadoop.apache.org Wed Dec 10 08:20:17 2008 Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@locus.apache.org Received: (qmail 97608 invoked from network); 10 Dec 2008 08:20:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Dec 2008 08:20:17 -0000 Received: (qmail 72702 invoked by uid 500); 10 Dec 2008 08:20:30 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 72689 invoked by uid 500); 10 Dec 2008 08:20:30 -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 72678 invoked by uid 99); 10 Dec 2008 08:20:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2008 00:20:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hanson.char@gmail.com designates 209.85.198.225 as permitted sender) Received: from [209.85.198.225] (HELO rv-out-0506.google.com) (209.85.198.225) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2008 08:20:15 +0000 Received: by rv-out-0506.google.com with SMTP id f9so1561145rvb.7 for ; Wed, 10 Dec 2008 00:19:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lliZK8mbFkI68huH1NTMFUh22yaaam4z3ghXZI6eGH4=; b=wTM2zRVZOKxfVrQ/jJIzA/Cq5jtk1uzyfNeBRnHHQBZuWPJIUA8oiGERDTsVlAvgqD OOgFgg8FWYsSAyuaJF9qgddZ9KW9ahQerd3Rze9knZXXcXHJlgrGRNvoBGRImSOAOt0T UvggopxIDyBbcVCYf61MsOxODweMDfPt+O6UY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=CbYqpsDFWdrNN4G/pyrXwo/QBgND+0Gkm4hqS3pDc6ILTJasClzXSWUivvDzP9uJsW vxpp1t8X1f0pkapCzrOQtn1YiFuXPsuIT8xgTU3bS2Yiyifu9HQIbCGGt79xbCYxYi/8 AzP2S8+3/K49KsAhLd6PpvJml6KrIP9oVzq4g= Received: by 10.141.122.1 with SMTP id z1mr523028rvm.210.1228897194405; Wed, 10 Dec 2008 00:19:54 -0800 (PST) Received: by 10.141.66.11 with HTTP; Wed, 10 Dec 2008 00:19:54 -0800 (PST) Message-ID: Date: Wed, 10 Dec 2008 00:19:54 -0800 From: "Hanson Char" To: zookeeper-user@hadoop.apache.org Subject: Missing statement in DataMonitor example ? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org I wonder if there is a missing statement (bug?) in the example: http://hadoop.apache.org/zookeeper/docs/r3.0.1/javaExample.html#sc_DataMonitor public void process(WatchedEvent event) { ... case SyncConnected: // Everything is happy. Lets kick things off // again by checking the existence of the znode break; ... According to the comment, shouldn't ZooKeeper.exists be invoked ? Like so: case SyncConnected: // Everything is happy. Lets kick things off // again by checking the existence of the znode zk.exists(znode, true, this, null); break; Or am I missing something ? Regards, Hanson