Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 358CC200D0C for ; Wed, 20 Sep 2017 22:10:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 33EA71609E3; Wed, 20 Sep 2017 20:10:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 72F171609E2 for ; Wed, 20 Sep 2017 22:10:35 +0200 (CEST) Received: (qmail 46661 invoked by uid 500); 20 Sep 2017 20:10:34 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 46631 invoked by uid 99); 20 Sep 2017 20:10:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2017 20:10:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 83DF71A01CD for ; Wed, 20 Sep 2017 20:10:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.452 X-Spam-Level: *** X-Spam-Status: No, score=3.452 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_SOFTFAIL=0.972] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=itevenworks-net.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bW01_QlEDIaG for ; Wed, 20 Sep 2017 20:10:31 +0000 (UTC) Received: from mail-yw0-f169.google.com (mail-yw0-f169.google.com [209.85.161.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 45E155FDBC for ; Wed, 20 Sep 2017 20:10:31 +0000 (UTC) Received: by mail-yw0-f169.google.com with SMTP id o143so2695448ywd.12 for ; Wed, 20 Sep 2017 13:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itevenworks-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Go+DuB0hcmfQjLKWXbp7EAALclXsm3CuccnYA5cA3KQ=; b=lchwgnMR+SlQEGg5nakDiuKUIARE8396GXHmPCdM7cg9J/qAnodGUJV89xacGLqygO OQWm1HKRHMe5rX+edaJfGTNsyeqwV+AChhdeRWwex2YsZIl/FkACZTUFfS3rtERJ5yjc dGDO7EXDECSIXWd+sHosTLVqZvBZlFhfcFZ8vmHtG/DuGbdMlu3M2DMJEoNywISs75pw 9rEkJkwfsjRtc+lvq/1FdQKqKD87ymKX0alKsranokC7qVgP+RMAUUwIjyLq8twbUHGB ZuQdL7iT9cQ2or2SQRyyomXhiKePHePUHozrEE/wPPpbl4ReoHVvKKtmNTWNoyuZ5+qV KWVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Go+DuB0hcmfQjLKWXbp7EAALclXsm3CuccnYA5cA3KQ=; b=Z39jO3nlOnQb+6xZnJDcLi308SVez1O+VhfowiaWYUlFwhjZvyqS3zDBUOhOUQu018 8CGrjGyNuWG91XZoT+YxjsJE6r4bGBoHxB6H9aPTQtPLtpYnNKvPchlpeg3MghHCpW1Y mowQbcxElq1X99L4qNYbYaDnATMpc3zuNj7t9v/mCk+uayny/YUl1QrT5cs5NfES33xK 3/a4XgAKvNFVRLL0sjHi+4R+u2Kkfguf2yO6V9xZAosx2GDLq4zI62QL2m6taMLa4knS pueAbJdttr9wl0XNcc7R1slpQN0LU4tB/s9zYKqF16ipzoPx00Y4Ya1+WHNJaJNu9Y+S A7EA== X-Gm-Message-State: AHPjjUgK2dlhA0VGyzMq762ZwGDA7RjGcBHhnhHBUv5DJEHYE4Tfe8ou PSFoMkTMsVSDeJ9BWVyptCc78o9eLbbDdBIpGTrZ9w== X-Google-Smtp-Source: AOwi7QBRZItMSiZqf/AhWcNJYB/A58a3Q7ohUdWIHl89L6AgL8sM5hDCkfs2I8bq0tM90F47n0/c1qA2O1Fl3pNNQPA= X-Received: by 10.129.158.80 with SMTP id v77mr4682475ywg.49.1505938230370; Wed, 20 Sep 2017 13:10:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.119.65 with HTTP; Wed, 20 Sep 2017 13:10:29 -0700 (PDT) X-Originating-IP: [192.94.66.22] In-Reply-To: References: <774C257B-368C-4AEA-9F88-5E67E8F95055@jordanzimmerman.com> <579E917D-E9C7-4089-BF7C-E46C6D1906C0@jordanzimmerman.com> From: =?UTF-8?B?UmHDumwgR3V0acOpcnJleiBTZWdhbMOpcw==?= Date: Wed, 20 Sep 2017 13:10:29 -0700 Message-ID: Subject: Re: Major issue with Container Nodes/TTL nodes!!! To: "dev@zookeeper.apache.org" Cc: Jordan Zimmerman , Flavio Junqueira , Michael Han , Patrick Hunt Content-Type: multipart/alternative; boundary="94eb2c0b689e46b11d0559a491d0" archived-at: Wed, 20 Sep 2017 20:10:36 -0000 --94eb2c0b689e46b11d0559a491d0 Content-Type: text/plain; charset="UTF-8" On 20 September 2017 at 12:54, Camille Fournier wrote: > Ok let's take this back to either public mailing list or jira. I'd write up > thoughts on jira and ask there+ml to look. I'll try to look tonight > Thanks Camille! Also, I merged this originally so I will work with Jordan on getting this fixed. Let me know when you have a write up of your proposed solution and I'll take a look. Thanks! -rgs > On Sep 20, 2017 3:52 PM, "Jordan Zimmerman" > wrote: > > > I'd like to fix it as my company and probably many others are now using > it > > in production. The question is how to fix it safely and correctly. Is > email > > the best way to discuss this? Jira? Something else? > > > > I must say that there appears to be a trivial fix but I need the ZK > > committers to think about this. In SessionTrackerImpl# > initializeNextSession() > > only some of the server ID bits are used. We could easily just mask the 2 > > high bits as well. But, what are the implications of this? Where is this > > serverId byte used? What must be double checked? > > > > -Jordan > > > > On Sep 20, 2017, at 2:46 PM, Camille Fournier > wrote: > > > > Would you rather roll back the feature or put in a fix? > > > > On Sep 20, 2017 3:44 PM, "Jordan Zimmerman" > > wrote: > > > >> Hey Folks, > >> > >> This is very serious. Please - let's discuss immediately. I'm not > certain > >> how to fix this. > >> > >> -JZ > >> > >> On Sep 20, 2017, at 2:17 PM, Jordan Zimmerman < > jordan@jordanzimmerman.com> > >> wrote: > >> > >> See: https://issues.apache.org/jira/browse/ZOOKEEPER-2901 > >> > >> It appears that the high order byte of a session ID is reserved for the > >> ServerID. I don't know how I could have missed this or how this got by > code > >> review, but Container Nodes and TTL nodes are using the 2 high bits to > >> denote container/TTL. I'll work on a fix ASAP. But, can someone validate > >> this? > >> > >> -Jordan > >> > >> > >> > > > --94eb2c0b689e46b11d0559a491d0--