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 15CC317388 for ; Sun, 13 Sep 2015 22:38:27 +0000 (UTC) Received: (qmail 36535 invoked by uid 500); 13 Sep 2015 22:38:27 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 36479 invoked by uid 500); 13 Sep 2015 22:38:26 -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 Received: (qmail 36467 invoked by uid 99); 13 Sep 2015 22:38:26 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Sep 2015 22:38:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 255ABF1D2C for ; Sun, 13 Sep 2015 22:38:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.98 X-Spam-Level: *** X-Spam-Status: No, score=3.98 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id bGuulNuGc56C for ; Sun, 13 Sep 2015 22:38:25 +0000 (UTC) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 3552027D63 for ; Sun, 13 Sep 2015 22:38:24 +0000 (UTC) Received: by pacex6 with SMTP id ex6so124482739pac.0 for ; Sun, 13 Sep 2015 15:38:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:message-id:subject:mime-version :content-type; bh=JtNSEAEu/Y8lxOdO8RxLpLO1KEF8eb5oblhd2I1Wo5o=; b=b7EKAJex6LoilJLWNFL5slH5xF89x47dcNcmiDTi7i66whtDALqiiER9jRTZjfxCi6 dsACpPsZuDhfLpQevAO8mTuo6te1J+6ezFf+TuEfKg7q4WHtPJjcZ1s9NlD7WH6Rxw8X glaHDw5dgAWWyBPMpPVUkULUbQHzBtbyQLVb2HST0+MwoSZvnW8nxrhSz1HC6CHJJosY sGoMvPG0mnrz51DQzKpK5LIQeywaZzRYV73oV9fkhJW8ungVr/i1Dcrs4xbaXlsUq13n ojBtSYr2IHFK1EZr9iWNVJIaKFJ1cY7VcEwW1AwMlj1X5Ph2BqtuPMwFyHUKeXVtAGiS LHUQ== X-Gm-Message-State: ALoCoQm402O1KqQX6oONwWxJQo3/0Ho1MF7VWc8sCuQ6LkSHsDlxbxi+sz6ZzUISuLW69ULNYSIs X-Received: by 10.69.2.227 with SMTP id br3mr27674831pbd.9.1442183896755; Sun, 13 Sep 2015 15:38:16 -0700 (PDT) Received: from Jordans-MacBook-Pro.local ([190.140.148.131]) by smtp.gmail.com with ESMTPSA id kh7sm5138944pbc.93.2015.09.13.15.38.15 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 13 Sep 2015 15:38:15 -0700 (PDT) Date: Sun, 13 Sep 2015 17:38:13 -0500 From: Jordan Zimmerman To: "=?utf-8?Q?dev=40curator.apache.org?=" Message-ID: Subject: DEVS PLEASE READ: What is the correct timeout for a session X-Mailer: Airmail (303) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="55f5fad5_60a8f34e_42a" --55f5fad5_60a8f34e_42a Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Devs, Given that Curator 3.0 will try to accurately track the session, I realiz= e I=E2=80=99m a bit confused about when a session actually expires. In th= e implementation I pushed, a timer starts when=C2=A0Watcher.Event.KeeperS= tate.Disconnected is seen. Then, if the negotiated session timeout elapse= s, Curator simulates a session expiration. However, the timeout is based = on the saved time when Disconnected is seen. I=E2=80=99ve been searching = in the ZK code and it=E2=80=99s hard to tell if that=E2=80=99s correct. I= =E2=80=99d appreciate a few other eyes on this. The significant class in = ZK is SessionTrackerImpl.java. touchSession() is called periodically and = a kind of priority queue is used to pull out expiring sessions. Thanks=21 -Jordan --55f5fad5_60a8f34e_42a--