Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21599CCF3 for ; Thu, 20 Jun 2013 01:21:38 +0000 (UTC) Received: (qmail 33816 invoked by uid 500); 20 Jun 2013 01:21:37 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 33778 invoked by uid 500); 20 Jun 2013 01:21:37 -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 33769 invoked by uid 99); 20 Jun 2013 01:21:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 01:21:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of calanchue@gmail.com designates 209.85.215.195 as permitted sender) Received: from [209.85.215.195] (HELO mail-ea0-f195.google.com) (209.85.215.195) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 01:21:32 +0000 Received: by mail-ea0-f195.google.com with SMTP id m14so2217543eaj.10 for ; Wed, 19 Jun 2013 18:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sLKukPdhjM2y2kITe4w2Chl9owW4Ff05WXcrc/2A47M=; b=pMccOZF8cltcsB3j7te6B7/HvF6fPQmUAeayPU3Pg0dvYu7YIeDHDBXSpo3WQPIKtA CV+10QlTFLBxYWatR0JgzLP/mZkxOpdp9qzq1Po2pN/nzXvtMtXgCNBnK27EA8YejQV2 rFgxb6MSqRE66HttZUnNNBo/Y4uSIcvps9A5wQceGYgk6ddhxZVdXnmcjS7GiCdkH4sQ KWzcRklBrXr6TRB92BekrhsebX/HALDhSdHv3CxWApGwKGziXUJkIafcT6Y7ytqpaXJh 8NMUBRspZ0jl1qjpjmgZBuV+FoD0LU1A8P6FvSVdKSGel5bHjdHyNJLhSBBiG7SINDOh u+ow== MIME-Version: 1.0 X-Received: by 10.14.47.196 with SMTP id t44mr5031785eeb.18.1371691271076; Wed, 19 Jun 2013 18:21:11 -0700 (PDT) Received: by 10.223.86.1 with HTTP; Wed, 19 Jun 2013 18:21:10 -0700 (PDT) Date: Thu, 20 Jun 2013 10:21:10 +0900 Message-ID: Subject: session expired suddenly after just receive 'Unable to read data from server' From: JinHwan Hwang To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a1133d77ef46acf04df8bc211 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133d77ef46acf04df8bc211 Content-Type: text/plain; charset=ISO-8859-1 The below is what i received at zookeeper client. Something i can't understand is time between 'unable to read' and 'socket connection'. As you see at below, that is just 1 second. That is too small for expiration. negotiated time of the client is 6000ms and tick time is 2000ms. In my opinion, it should be at least 4 or 6 seconds to get expiration from getting 'unable to read'. What i'm currently suspicious about is JVM setting. Before I set up concurrent garbage collector on zookeeper server, there were really many connection loss. Can that weird connection loss come from not setting up garbage collector on zk client JVM? There were no gc logging at the client, and i can't reproduce this error. thanks for reading. ______________________________________________________________________________________________ INFO ][01:00:00]-Unable to read additional data from server sessionid 0x13f3b16dcb70005, likely server has closed socket, closing socket connection and attempting reconnect [INFO ][01:00:01]-Opening socket connection to server 172.16.143.6/172.16.143.6:2181 [INFO ][01:00:01]-Socket connection established to 172.16.143.6/172.16.143.6:2181, initiating session [INFO ][01:00:01]-Unable to reconnect to ZooKeeper service, session 0x13f3b16dcb70005 has expired, closing socket connection [INFO ][01:00:01]-Initiating client connection, connectString= 172.16.143.6:2181,172.16.143.7:2181,172.16.143.8:2181 sessionTimeout=6000 watcher=com.gabia.cage.ZkSessionManager@7977b9b [INFO ][01:00:01]-EventThread shut down [INFO ][01:00:01]-Opening socket connection to server /172.16.143.6:2181 [INFO ][01:00:01]-Socket connection established to 172.16.143.6/172.16.143.6:2181, initiating session [INFO ][01:00:01]-Session establishment complete on server 172.16.143.6/172.16.143.6:2181, sessionid = 0x13f40fb42210001, negotiated timeout = 6000 ___________________________________________________________________________________________ --001a1133d77ef46acf04df8bc211--