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 CC8EF17B52 for ; Mon, 14 Sep 2015 04:42:18 +0000 (UTC) Received: (qmail 68057 invoked by uid 500); 14 Sep 2015 04:42:15 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 68008 invoked by uid 500); 14 Sep 2015 04:42:15 -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 67996 invoked by uid 99); 14 Sep 2015 04:42:15 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Sep 2015 04:42:15 +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 D46D6F1EFC for ; Mon, 14 Sep 2015 04:42:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.881 X-Spam-Level: ** X-Spam-Status: No, score=2.881 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 GpXncNZDwCfy for ; Mon, 14 Sep 2015 04:42:03 +0000 (UTC) Received: from mail-yk0-f173.google.com (mail-yk0-f173.google.com [209.85.160.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2F53F20CB7 for ; Mon, 14 Sep 2015 04:42:03 +0000 (UTC) Received: by ykdt18 with SMTP id t18so122047911ykd.3 for ; Sun, 13 Sep 2015 21:42:02 -0700 (PDT) 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 :content-type; bh=nfkMzyegSBxcR+/PTiE72eG86CsJhG2T6AVfn8BwUHM=; b=EI+1Q0n+lMwfnjqnNKMoafkrHgsuHIrxIKJphMZLjgxK+u+fXWad6ErJwwqoU8LdXQ H5ZR9q/tSIYwkHbIG6aHsY5HkPXLE8oTVdxNZxHYQp18FMd2rvbutpb9pDvyds+J3gQH Ch6KmUFYN7s6a68wTUwOm3CkQILBFZaOhFBYNWAF/dcixi9R/fpm7t2rHftsStT7pwg8 LTJwGz5bX8eBtmfWYFQcwmGUmPr9az239xfVwxxmDF1zvR6NsYh1VZlYFy3W4YGvQ4MA n+Kfu6WN+oBwn1zAYMvwmA++JMxHyjR3sSgEEnP/7t0KwS0BenD1QS1lFn8GP2lSCv1E ou8w== MIME-Version: 1.0 X-Received: by 10.129.56.139 with SMTP id f133mr11868830ywa.61.1442205722218; Sun, 13 Sep 2015 21:42:02 -0700 (PDT) Received: by 10.37.96.195 with HTTP; Sun, 13 Sep 2015 21:42:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 14 Sep 2015 14:42:02 +1000 Message-ID: Subject: Re: DEVS PLEASE READ: What is the correct timeout for a session From: Cameron McKenzie To: "dev@curator.apache.org" Content-Type: multipart/alternative; boundary=001a114d4264c416d3051fadaf55 --001a114d4264c416d3051fadaf55 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Good point, either way it probably needs to be documented, as it would probably be confusing to get a session loss event from Curator and then manage to reconnect to ZK and still find all your sessions ephemeral nodes present. I presume it's not possible to get a hook into the acknowledgement of an event from ZK? We could use that as the start of the session timeout timer. On Mon, Sep 14, 2015 at 2:39 PM, Jordan Zimmerman < jordan@jordanzimmerman.com> wrote: > Not sure if this is an issue or not. It's better that Curator declares a > session lost a bit later than a bit earlier than ZK. > Actually, I was thinking it would be better if Curator declares lost > before ZK does. The idea is to wait until the last moment to stop locks, > etc. But, users would still want to not have two processes thinking they > own the same lock. I wonder if we need to add a =E2=80=9Cfudge factor=E2= =80=9D of some kind > so that Curator fakes the session loss a bit before the negotiated sessio= n > timeout elapses. > > > > -JZ > > --001a114d4264c416d3051fadaf55--