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 7D21A9FDC for ; Fri, 2 Mar 2012 03:14:31 +0000 (UTC) Received: (qmail 72328 invoked by uid 500); 2 Mar 2012 03:14:30 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 72257 invoked by uid 500); 2 Mar 2012 03:14:30 -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 71664 invoked by uid 99); 2 Mar 2012 03:14:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 03:14:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of skamille@gmail.com designates 209.85.210.170 as permitted sender) Received: from [209.85.210.170] (HELO mail-iy0-f170.google.com) (209.85.210.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 03:14:23 +0000 Received: by iaeh11 with SMTP id h11so1710541iae.15 for ; Thu, 01 Mar 2012 19:14:02 -0800 (PST) Received-SPF: pass (google.com: domain of skamille@gmail.com designates 10.43.117.135 as permitted sender) client-ip=10.43.117.135; Authentication-Results: mr.google.com; spf=pass (google.com: domain of skamille@gmail.com designates 10.43.117.135 as permitted sender) smtp.mail=skamille@gmail.com; dkim=pass header.i=skamille@gmail.com Received: from mr.google.com ([10.43.117.135]) by 10.43.117.135 with SMTP id fm7mr6516180icc.29.1330658042187 (num_hops = 1); Thu, 01 Mar 2012 19:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=IglUlmT+UsF9uQ1DQrUeqV/A6/NJVa0g4OqE2hEyTkI=; b=aA3EJ3aqaStaktL+7vGSLehw26fI/O/J0E1koth0ZnWZfyoG+J1EADIOM6JXmfy0Lk jX42Rnm9irLdYKali1tuvI5msK3txRyEqHyBqADxXNh8ILSUMc+UfSmLQoA2Dj1jME7g RIg3xsdbQVG3dixr/sYShZsUwTGpjN/Z9jej1WCHURQXBg94xPh+24kC4atKm1DF0YdO s1gEF0WzfLks6l4Jvio+3QQ48TFcBw/logapFTkQUg1TZyrfp0gOR8gSrPrFw9gh1jp4 ceL2+6h3GCv6TWTyzDS2mv0lc88aJ6OxIJREd4AAdPP5TM3PrRAnunFZ5fsFlT0EqGE8 39Og== MIME-Version: 1.0 Received: by 10.43.117.135 with SMTP id fm7mr5348619icc.29.1330658042140; Thu, 01 Mar 2012 19:14:02 -0800 (PST) Received: by 10.231.160.209 with HTTP; Thu, 1 Mar 2012 19:14:02 -0800 (PST) In-Reply-To: References: Date: Thu, 1 Mar 2012 22:14:02 -0500 Message-ID: Subject: Re: methods to figure out what causes an ephemeral node to be deleted From: Camille Fournier To: user@zookeeper.apache.org Cc: zookeeper-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Actually, I think for this if you just use the LogFormatter that comes inside ZooKeeper (zookeeper.server.LogFormatter) you should be able to find the information you need. C On Thu, Mar 1, 2012 at 9:47 PM, Camille Fournier wrote= : > Running your transaction logs through the LogFormatter. You should see > an explicit delete, or the close of the owning session. The > LogFormatter is not awesome though... I have some better versions of > it that I will throw up on GitHub in a bit and link if you're > interested. > > On Thu, Mar 1, 2012 at 9:43 PM, Adam Rosien wrote: >> I'm trying to track down the exact cause of an ephemeral node being >> deleted. I know it could be either (a) the session where the node was >> created has expired, or (b) some session, perhaps the same one that crea= ted >> the node, explicitly deletes the node. Is there a good way to figure out= , >> client-side or server-side, the actual cause of a node deletion? >> >> Specifically, I have a log message like the following, and I want to kno= w >> "where" it came from: >> >> 2012-03-01 17:02:44 [main-SendThread(blah:2181)] [DEBUG] >> [org.apache.zookeeper.ClientCnxn =A0 =A0 =A0 =A0 ] - Got WatchedEvent >> state:SyncConnected type:NodeDeleted path:/blah/blah/blah for sessionid >> 0x333a2e75199161b >> >> Also, is the referenced session id the session id of a watch on the dele= ted >> node, or the session id of the session that deleted the node? I'm guessi= ng >> the former. >> >> .. Adam