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 BDC99104C7 for ; Fri, 9 Aug 2013 16:14:02 +0000 (UTC) Received: (qmail 50425 invoked by uid 500); 9 Aug 2013 16:14:01 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 50304 invoked by uid 500); 9 Aug 2013 16:13:55 -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 50296 invoked by uid 99); 9 Aug 2013 16:13:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 16:13:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dsetia@juniper.net designates 216.32.180.187 as permitted sender) Received: from [216.32.180.187] (HELO co1outboundpool.messaging.microsoft.com) (216.32.180.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 16:13:48 +0000 Received: from mail48-co1-R.bigfish.com (10.243.78.241) by CO1EHSOBE019.bigfish.com (10.243.66.82) with Microsoft SMTP Server id 14.1.225.22; Fri, 9 Aug 2013 16:13:26 +0000 Received: from mail48-co1 (localhost [127.0.0.1]) by mail48-co1-R.bigfish.com (Postfix) with ESMTP id 579E440010B for ; Fri, 9 Aug 2013 16:13:26 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.240.101;KIP:(null);UIP:(null);IPV:NLI;H:BL2PRD0510HT001.namprd05.prod.outlook.com;RD:none;EFVD:NLI X-SpamScore: -1 X-BigFish: PS-1(z569dhz936eIzz1f42h208ch1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz1de098h1de097hz2fh2a8h668h839h946hd25he5bhf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1d0ch1d2eh1d3fh1dc1h1dfeh1dffh1e1dh1fe8h1155h) Received-SPF: pass (mail48-co1: domain of juniper.net designates 157.56.240.101 as permitted sender) client-ip=157.56.240.101; envelope-from=dsetia@juniper.net; helo=BL2PRD0510HT001.namprd05.prod.outlook.com ;.outlook.com ; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(377424004)(199002)(189002)(19580395003)(19580405001)(83072001)(74706001)(83322001)(221733001)(74876001)(74502001)(74662001)(31966008)(81542001)(16406001)(69226001)(81342001)(59766001)(54316002)(47446002)(77982001)(79102001)(81686001)(36756003)(46102001)(74366001)(4396001)(50986001)(80022001)(65816001)(47976001)(49866001)(80976001)(53806001)(47736001)(56776001)(76796001)(56816003)(77096001)(54356001)(63696002)(66066001)(76482001)(33656001)(76176001)(51856001)(76786001);DIR:OUT;SFP:;SCL:1;SRVR:BL2PR05MB132;H:BL2PR05MB129.namprd05.prod.outlook.com;CLIP:66.129.224.52;RD:InfoNoRecords;A:1;MX:1;LANG:en; Received: from mail48-co1 (localhost.localdomain [127.0.0.1]) by mail48-co1 (MessageSwitch) id 1376064804822803_29794; Fri, 9 Aug 2013 16:13:24 +0000 (UTC) Received: from CO1EHSMHS030.bigfish.com (unknown [10.243.78.241]) by mail48-co1.bigfish.com (Postfix) with ESMTP id BC6B840048 for ; Fri, 9 Aug 2013 16:13:24 +0000 (UTC) Received: from BL2PRD0510HT001.namprd05.prod.outlook.com (157.56.240.101) by CO1EHSMHS030.bigfish.com (10.243.66.40) with Microsoft SMTP Server (TLS) id 14.16.227.3; Fri, 9 Aug 2013 16:13:24 +0000 Received: from BL2PR05MB132.namprd05.prod.outlook.com (10.242.198.27) by BL2PRD0510HT001.namprd05.prod.outlook.com (10.255.100.36) with Microsoft SMTP Server (TLS) id 14.16.341.1; Fri, 9 Aug 2013 16:13:23 +0000 Received: from BL2PR05MB129.namprd05.prod.outlook.com (10.242.198.11) by BL2PR05MB132.namprd05.prod.outlook.com (10.242.198.27) with Microsoft SMTP Server (TLS) id 15.0.731.16; Fri, 9 Aug 2013 16:13:22 +0000 Received: from BL2PR05MB129.namprd05.prod.outlook.com ([169.254.2.119]) by BL2PR05MB129.namprd05.prod.outlook.com ([169.254.2.119]) with mapi id 15.00.0731.000; Fri, 9 Aug 2013 16:13:21 +0000 From: Deepinder Singh Setia To: "user@zookeeper.apache.org" Subject: OperationTimeoutException error Thread-Topic: OperationTimeoutException error Thread-Index: AQHOlRtecalBxIY5ukayaLkwGDBgOw== Date: Fri, 9 Aug 2013 16:13:21 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [66.129.224.52] x-forefront-prvs: 0933E9FD8D Content-Type: text/plain; charset="Windows-1252" Content-ID: <0FE915C5F4991547A7139E3D6A3F2A3F@namprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: juniper.net X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-Virus-Checked: Checked by ClamAV on apache.org I am using Kazoo client and see the following error: Aug 9 07:07:20 a2s1 python[2085]: File "/usr/lib/python2.7/site-packages/k= azoo/client.py", line 894, in set Aug 9 07:07:20 a2s1 python[2085]: return self.set_async(path, data, versio= n).get() Aug 9 07:07:20 a2s1 python[2085]: File "/usr/lib64/python2.7/site-packages= /gevent/event.py", line 223, in get Aug 9 07:07:20 a2s1 python[2085]: raise self._exception=20 Aug 9 07:07:20 a2s1 python[2085]: OperationTimeoutException: operation tim= eout zookeeper logs around the error time: 2013-08-09 07:07:06,580 [myid:] - WARN [SyncThread:0:FileTxnLog@321] - fsy= nc-ing the write ahead log in SyncThread:0 took 2291ms which will adversely= effect operation latency. See the ZooKeeper troubleshooting guide =85 2013-08-09 07:07:19,827 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2181:NIOServerCnxn@349] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid = 0x1406356c3bc0001, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.jav= a:220) at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCn= xnFactory.java:224) at java.lang.Thread.run(Thread.java:722) 2013-08-09 07:07:19,828 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2181:NIOServerCnxn@1000] - Closed socket connection for client /127.0.0.= 1:54698 which had sessionid 0x1406356c3bc0001 2013-08-09 07:07:20,246 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2181:NIOServerCnxn@349] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid = 0x1406356c3bc0000, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.jav= a:220) at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCn= xnFactory.java:224) at java.lang.Thread.run(Thread.java:722) 2013-08-09 07:07:20,246 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2181:NIOServerCnxn@1000] - Closed socket connection for client /127.0.0.= 1:54579 which had sessionid 0x1406356c3bc0000 2013-08-09 07:07:21,583 [myid:] - WARN [SyncThread:0:FileTxnLog@321] - fsy= nc-ing the write ahead log in SyncThread:0 took 8001ms which will adversely= effect operation latency. See the ZooKeeper troubleshooting guide 2013-08-09 07:07:21,680 [myid:] - ERROR [SyncThread:0:NIOServerCnxn@180] - = Unexpected Exception: java.nio.channels.CancelledKeyException [root@a2s1 zookeeper]# grep fsync /var/log/zookeeper/zookeeper.out=20 2013-08-09 07:06:52,280 [myid:] - WARN [SyncThread:0:FileTxnLog@321] - fsy= nc-ing the write ahead log in SyncThread:0 took 1724ms which will adversely= effect operation latency. See the ZooKeeper troubleshooting guide 2013-08-09 07:06:58,315 [myid:] - WARN [SyncThread:0:FileTxnLog@321] - fsy= nc-ing the write ahead log in SyncThread:0 took 2378ms which will adversely= effect operation latency. See the ZooKeeper troubleshooting guide 2013-08-09 07:07:01,389 [myid:] - WARN [SyncThread:0:FileTxnLog@321] - fsy= nc-ing the write ahead log in SyncThread:0 took 1113ms which will adversely= effect operation latency. See the ZooKeeper troubleshooting guide 2013-08-09 07:07:06,580 [myid:] - WARN [SyncThread:0:FileTxnLog@321] - fsy= nc-ing the write ahead log in SyncThread:0 took 2291ms which will adversely= effect operation latency. See the ZooKeeper troubleshooting guide 2013-08-09 07:07:21,583 [myid:] - WARN [SyncThread:0:FileTxnLog@321] - fsy= nc-ing the write ahead log in SyncThread:0 took 8001ms which will adversely= effect operation latency. See the ZooKeeper troubleshooting guide [ Could the client (Kazoo) be timing out because of fsync delay? What paramet= er would control duration for OperationTimeoutException that I can perhaps = increase to verify? There is only ZooKeeper client and the load isn't much = - 1 read/sec and 2 writes/sec roughly. Zookeeper configuration is default. = Kazoo client params are also default.=20 Thanks Deepinder