Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 414B518ABF for ; Mon, 18 Jan 2016 21:01:23 +0000 (UTC) Received: (qmail 45130 invoked by uid 500); 18 Jan 2016 21:01:23 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 45076 invoked by uid 500); 18 Jan 2016 21:01:23 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Delivered-To: moderator for dev@curator.apache.org Received: (qmail 41468 invoked by uid 99); 18 Jan 2016 20:56:28 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elastic.co DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elastic.co; s=google; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=mHiyVPt6cbXLPZ/Zon4w1DFxnFYZZEBknPRkCItSsjE=; b=EQtcdKdsu9rhbGsQ9gxrrG+9sF7UzqdQEdSss0BcVxEN0n8wNoY2/76MxKPl2LY9a/ k9qJyfPAfV1Zbv/UXdacfnWtoQX8FCo0F9NR+g89UQzpCtC5U9meQASB8wJ7rWbWWELd UvmYVxMmp9R2ZiXDXZRm7cpTIiOcBQ1gLn/WE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=mHiyVPt6cbXLPZ/Zon4w1DFxnFYZZEBknPRkCItSsjE=; b=JhNhu1ZAnPvmSdR7ZDocNTWwvJ56sHa5jW6XR1TMn4cJF7aRqWSapmTYJDtUeIG3rg Kd+gApvYYqWqP0MAjoUWY06ayoZY5bRHZLmaCKDLnXExzlJNllQBPXAuazmS/F7XVt+J 9a4YU0vXR+ZGOx3MdAE9hzB2BOyh0mSRxlD8PGNxCXf8bHzWhHu8aMhka3O+7o19UhNA HCxEpcmPto5jFcBUCQGVj9a0aptpIXlb8Vrq+IG8/3jMyMILG7+gnKLSTbQ55xxjo4Mp gQs0eCQhjAQxDXWvqkKqwts6PWQd2CpiEPTvzyBhP6sF2+9+iZwEaP4S/s9Xf0Wl3JRZ CHHg== X-Gm-Message-State: ALoCoQlajGAPChfu8XFYz4jjNebVA/z6mYMYmqK4x8oPPS3KxemFdn+whSR6bDYCcVQ7qGUIp7Qg9qEs3zrD9OI/hr+UYFiA9g== X-Received: by 10.37.230.194 with SMTP id d185mr6156507ybh.121.1453150578060; Mon, 18 Jan 2016 12:56:18 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: TreeCache wasDeleted() From: Jordan Zimmerman In-Reply-To: Date: Mon, 18 Jan 2016 15:56:15 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <6497B530-CF32-460C-A75F-329E583BA09F@elastic.co> To: dev@curator.apache.org X-Mailer: Apple Mail (2.3112) So, this would be right then? = client.watches().remove(this).ofType(WatcherType.Any).inBackground().forPa= th(path); // NEW > On Jan 18, 2016, at 3:42 PM, Scott Blum wrote: >=20 > It looks like the history has gotten super gnarly, so it's hard to = track > code provenance. But the call to client.clearWatcherReferences(this) = has > always been there. It's important for long running TreeCaches to be = able > to clear dead watchers as they go. >=20 > On Mon, Jan 18, 2016 at 2:09 PM, Jordan Zimmerman < > jordan.zimmerman@elastic.co> wrote: >=20 >> Hi Scott, >>=20 >> In TreeCache wasDeleted(), there is a call to clear watchers. When = was >> this added? I=E2=80=99m trying to merge into CURATOR-3.0 and the new = behavior would >> be to remove the watcher via the ZK API. Is this correct or should = the >> watcher stay? Please advise. The new code would be: >>=20 >> stat.getAndSet(null); >> data.getAndSet(null); >> = client.watches().remove(this).ofType(WatcherType.Any).inBackground().forPa= th(path); >> // NEW >>=20