Return-Path: Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: (qmail 45844 invoked from network); 11 Feb 2011 14:42:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 14:42:01 -0000 Received: (qmail 77696 invoked by uid 500); 11 Feb 2011 14:42:01 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 77273 invoked by uid 500); 11 Feb 2011 14:41:57 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 77247 invoked by uid 99); 11 Feb 2011 14:41:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 14:41:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Nicholas.Patania@morganstanley.com designates 199.89.103.73 as permitted sender) Received: from [199.89.103.73] (HELO pimtaint03.ms.com) (199.89.103.73) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 14:41:47 +0000 Received: from pimtaint03.ms.com (localhost.ms.com [127.0.0.1]) by pimtaint03.ms.com (output Postfix) with ESMTP id C924A4D0576 for ; Fri, 11 Feb 2011 09:41:26 -0500 (EST) X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.44/RELEASE, bases: 20110211 #4786919, check: 20110211 clean Received: from ny0030as02 (unknown [170.74.93.68]) by pimtaint03.ms.com (internal Postfix) with ESMTP id C75552417B2 for ; Fri, 11 Feb 2011 09:41:26 -0500 (EST) Received: from ny0030as02 (localhost [127.0.0.1]) by ny0030as02 (msa-out Postfix) with ESMTP id B788BAB8211 for ; Fri, 11 Feb 2011 09:41:26 -0500 (EST) Received: from pimsaext01.ms.com (pimsaext01 [199.89.103.70]) by ny0030as02 (mta-in Postfix) with ESMTP id B4A205CC035 for ; Fri, 11 Feb 2011 09:41:26 -0500 (EST) Received: from pimsaext01.ms.com (localhost.ms.com [127.0.0.1]) by pimsaext01.ms.com (output Postfix) with ESMTP id 9DE97300C6 for ; Fri, 11 Feb 2011 09:41:26 -0500 (EST) X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.44/RELEASE, bases: 20110211 #4786919, check: 20110211 clean Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by pimsaext01.ms.com (submission Postfix) with ESMTPS id 5D997C0001 for ; Fri, 11 Feb 2011 09:41:26 -0500 (EST) Received: by eyh6 with SMTP id 6so1269329eyh.0 for ; Fri, 11 Feb 2011 06:41:25 -0800 (PST) Received: by 10.103.214.5 with SMTP id r5mr334053muq.134.1297435285231; Fri, 11 Feb 2011 06:41:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.228.16 with HTTP; Fri, 11 Feb 2011 06:41:05 -0800 (PST) In-Reply-To: <4D548CC9.6090102@yahoo-inc.com> References: <6642FC1CAF133548AA8FDF497C547F0A23C0C5265B@NYWEXMBX2126.msad.ms.com> <4D548CC9.6090102@yahoo-inc.com> From: Nick Patania Date: Fri, 11 Feb 2011 09:41:05 -0500 Message-ID: Subject: Re: tickTime and sessionTimeout To: user@zookeeper.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org This is the portion that seems relevant. For readability, I replaced the host and session for the host that I kill with HOST_0 and SESSION_0 (I expect these to timeout). The client that should be healthy is HOST_1 and SESSION_1. 2011-02-11 14:18:51,901 - DEBUG [SyncThread:0:FinalRequestProcessor@78] - Processing request:: sessionid:SESSION_0 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:51,901 - DEBUG [SyncThread:0:FinalRequestProcessor@160] - sessionid:SESSION_0 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:52,005 - DEBUG [SyncThread:0:FinalRequestProcessor@78] - Processing request:: sessionid:SESSION_1 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:52,005 - DEBUG [SyncThread:0:FinalRequestProcessor@160] - sessionid:SESSION_1 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:52,339 - DEBUG [SyncThread:0:FinalRequestProcessor@78] - Processing request:: sessionid:SESSION_1 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:52,339 - DEBUG [SyncThread:0:FinalRequestProcessor@160] - sessionid:SESSION_1 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:52,672 - DEBUG [SyncThread:0:FinalRequestProcessor@78] - Processing request:: sessionid:SESSION_1 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:52,672 - DEBUG [SyncThread:0:FinalRequestProcessor@160] - sessionid:SESSION_1 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:53,002 - INFO [SessionTracker:ZooKeeperServer@314] - Expiring session SESSION_0, timeout of 1000ms exceeded 2011-02-11 14:18:53,002 - INFO [ProcessThread:-1:PrepRequestProcessor@387] - Processed session termination for sessionid: SESSION_0 2011-02-11 14:18:53,010 - DEBUG [SyncThread:0:FinalRequestProcessor@78] - Processing request:: sessionid:SESSION_0 type:closeSession cxid:0x0 zxid:0x103 txntype:-11 reqpath:n/a 2011-02-11 14:18:53,010 - INFO [SyncThread:0:NIOServerCnxn@1435] - Closed socket connection for client /HOST_0:34618 which had sessionid SESSION_0 2011-02-11 14:18:54,502 - INFO [SessionTracker:ZooKeeperServer@314] - Expiring session SESSION_1, timeout of 1000ms exceeded 2011-02-11 14:18:54,502 - INFO [ProcessThread:-1:PrepRequestProcessor@387] - Processed session termination for sessionid: SESSION_1 2011-02-11 14:18:55,011 - DEBUG [SyncThread:0:FinalRequestProcessor@78] - Processing request:: sessionid:SESSION_1 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:55,011 - DEBUG [SyncThread:0:FinalRequestProcessor@160] - sessionid:SESSION_1 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2011-02-11 14:18:55,011 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:4799:NIOServerCnxn$Factory@251] - Accepted socket connection from /HOST_1:40556 2011-02-11 14:18:55,019 - DEBUG [SyncThread:0:FinalRequestProcessor@78] - Processing request:: sessionid:SESSION_1 type:closeSession cxid:0x0 zxid:0x104 txntype:-11 reqpath:n/a 2011-02-11 14:18:55,019 - DEBUG [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:4799:ZooKeeperServer@590] - Dropping request: No session with sessionid SESSION_1 exists, probably expired and removed 2011-02-11 14:18:55,019 - INFO [SyncThread:0:NIOServerCnxn@1435] - Closed socket connection for client /HOST_1:40555 which had sessionid SESSION_1 2011-02-11 14:18:55,020 - DEBUG [SyncThread:0:NIOServerCnxn@1451] - ignoring exception during output shutdown java.net.SocketException: Transport endpoint is not connected at sun.nio.ch.SocketChannelImpl.shutdown(Native Method) at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:651) at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368) at org.apache.zookeeper.server.NIOServerCnxn.closeSock(NIOServerCnxn.java:= 1447) at org.apache.zookeeper.server.NIOServerCnxn.close(NIOServerCnxn.java:1412= ) at org.apache.zookeeper.server.NIOServerCnxn$Factory.closeSessionWithoutWa= keup(NIOServerCnxn.java:343) at org.apache.zookeeper.server.NIOServerCnxn$Factory.closeSession(NIOServe= rCnxn.java:330) at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalR= equestProcessor.java:133) at org.apache.zookeeper.server.SyncRequestProcessor.flush(SyncRequestProce= ssor.java:161) at org.apache.zookeeper.server.SyncRequestProcessor.run(SyncRequestProcess= or.java:98) 2011-02-11 14:18:55,021 - DEBUG [SyncThread:0:NIOServerCnxn@1459] - ignoring exception during input shutdown java.net.SocketException: Transport endpoint is not connected at sun.nio.ch.SocketChannelImpl.shutdown(Native Method) at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:640) at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360) at org.apache.zookeeper.server.NIOServerCnxn.closeSock(NIOServerCnxn.java:= 1455) at org.apache.zookeeper.server.NIOServerCnxn.close(NIOServerCnxn.java:1412= ) at org.apache.zookeeper.server.NIOServerCnxn$Factory.closeSessionWithoutWa= keup(NIOServerCnxn.java:343) at org.apache.zookeeper.server.NIOServerCnxn$Factory.closeSession(NIOServe= rCnxn.java:330) at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalR= equestProcessor.java:133) at org.apache.zookeeper.server.SyncRequestProcessor.flush(SyncRequestProce= ssor.java:161) at org.apache.zookeeper.server.SyncRequestProcessor.run(SyncRequestProcess= or.java:98) 2011-02-11 14:18:55,022 - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:4799:NIOServerCnxn$Factory@272] - Ignoring unexpected runtime exception java.nio.channels.CancelledKeyException at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55) at sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:69) at org.apache.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.jav= a:241) 2011-02-11 14:18:55,023 - DEBUG [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:4799:NIOServerCnxn@735] - Session establishment request from client /HOST_1:40556 client's lastZxid is 0x0 2011-02-11 14:18:55,023 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:4799:NIOServerCnxn@770] - Client attempting to renew session SESSION_1 at /HOST_1:40556 2011-02-11 14:18:55,024 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:4799:NIOServerCnxn@1573] - Invalid session SESSION_1 for client /HOST_1:40556, probably expired 2011-02-11 14:18:55,025 - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:4799:NIOServerCnxn@634] - EndOfStreamException: Unable to read additional data from client sessionid SESSION_1, likely client has closed socket 2011-02-11 14:18:55,025 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:4799:NIOServerCnxn@1435] - Closed socket connection for client /HOST_1:40556 which had sessionid SESSION_1 On Thu, Feb 10, 2011 at 8:11 PM, Benjamin Reed wrote: > do you see anything in the server log? > > ben > > On 02/10/2011 03:16 PM, Patania, Nick wrote: >> >> Hello, >> >> I run the following test: >> >> >> * =A0 =A0 =A0 =A0 Two clients connect to a zookeeper server; the tickTim= e on the >> server is 500, and the sessionTimeout on the client is 1000. >> >> * =A0 =A0 =A0 =A0 Kill the host running one of the clients. >> >> * =A0 =A0 =A0 =A0 The second client receives a session timeout. >> >> Is there any reason why this might happen? >> >> Thanks >> Nick Patania >> >> >> ------------------------------------------------------------------------= -- >> NOTICE: Morgan Stanley is not acting as a municipal advisor and the >> opinions or views contained herein are not intended to be, and do not >> constitute, advice within the meaning of Section 975 of the Dodd-Frank W= all >> Street Reform and Consumer Protection Act. If you have received this >> communication in error, please destroy all electronic and paper copies a= nd >> notify the sender immediately. Mistransmission is not intended to waive >> confidentiality or privilege. Morgan Stanley reserves the right, to the >> extent permitted under applicable law, to monitor electronic communicati= ons. >> This message is subject to terms available at the following link: >> http://www.morganstanley.com/disclaimers. If you cannot access these lin= ks, >> please notify us by reply message and we will send the contents to you. = By >> messaging with Morgan Stanley you consent to the foregoing. > >