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 28A7F18604 for ; Mon, 18 Jan 2016 19:15:31 +0000 (UTC) Received: (qmail 26819 invoked by uid 500); 18 Jan 2016 19:15:30 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 26773 invoked by uid 500); 18 Jan 2016 19:15:30 -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 16502 invoked by uid 99); 18 Jan 2016 19:09:50 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-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=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=8E0Rw4TUraGiMgy4FqIbo4/FcDu5gGkQ5hg7WE5Y4Zc=; b=cyyR2kydS6BdAOiHFEYKsJzHvGuQHeLgs2L2M9XB9jdgImAtvs90ivxY1NlzrbnLnT /jnrBR4ldLNAEV4dkgviJyS/0653C3ZkagDWBz2apU8+R3UU3q4MiDREH0D2u/vykwYI /icaU3D4wBRfNG/yqItBllcWAgZv8JlPEzHYY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; bh=8E0Rw4TUraGiMgy4FqIbo4/FcDu5gGkQ5hg7WE5Y4Zc=; b=gNDCiT4QK5OjjH1tMQ/NXcCK9QMJ1isEp1Hi+gYxBaMCtduEH1PKfMqqn/3j1bXI2D dM5IzppyuzywCemc31FAJr5JEqjTcIapr13yLWHVFA5tnDWXBAy4/PoeB2U/oq6wLZfv kcWqYiUGy0v2TXz0O0jF3o2doLn1geMOjf9epk5TXUWvEDl0EmR/SQ2P/Osh15qmBrZq SDHAyR0+kRA0OKAaJuU29e3oUx2mXFgO9HEtGpSMlB+fiH6cxKMmBlAFze49l6j7MOEP l11h6YWrTeaHJfLjFd7NpYbzsE8lYJMzbEVp860tpUt+42LVpCufS9m20TrpXWTEjl7c YPQw== X-Gm-Message-State: AG10YOQg5nFdc8MW9PHKdqXKT+s0TOjeb5yi29P8Ap/Bf6tvXXLR36GP2jlBsa3viQCaaL6B X-Received: by 10.50.88.72 with SMTP id be8mr11741943igb.45.1453144182046; Mon, 18 Jan 2016 11:09:42 -0800 (PST) From: Jordan Zimmerman Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: TreeCache wasDeleted() Message-Id: <6497B530-CF32-460C-A75F-329E583BA09F@elastic.co> Date: Mon, 18 Jan 2016 14:09:38 -0500 To: dev@curator.apache.org, Scott Blum Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) X-Mailer: Apple Mail (2.3112) Hi Scott, 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: stat.getAndSet(null); data.getAndSet(null); = client.watches().remove(this).ofType(WatcherType.Any).inBackground().forPa= th(path); // NEW