From dev-return-79137-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Tue Mar 12 01:47:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2B01D180657 for ; Tue, 12 Mar 2019 02:47:04 +0100 (CET) Received: (qmail 46745 invoked by uid 500); 12 Mar 2019 01:47:03 -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 46734 invoked by uid 99); 12 Mar 2019 01:47:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2019 01:47:03 +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 68FA6C63F1 for ; Tue, 12 Mar 2019 01:47:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id TLjcwF--34ge for ; Tue, 12 Mar 2019 01:47:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6E4AB60D9E for ; Tue, 12 Mar 2019 01:47:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 74216E0C57 for ; Tue, 12 Mar 2019 01:47:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1CDF9257FF for ; Tue, 12 Mar 2019 01:47:00 +0000 (UTC) Date: Tue, 12 Mar 2019 01:47:00 +0000 (UTC) From: "yeshuangshuang (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: =?utf-8?Q?[jira]_[Commented]_(ZOOKEEPER-3211)_zookeeper_standalone_?= =?utf-8?Q?mode=EF=BC=8Cfound_a_high_level_bug_i?= =?utf-8?Q?n_kernel_of_centos7.0_=EF=BC=8Czookee?= =?utf-8?Q?per_Server's__tcp/ip_socket_connections(default_60_)_are_?= =?utf-8?Q?CLOSE=5FWAIT_=EF=BC=8Cthis_lead_to_zk_c?= =?utf-8?Q?an't_work_for_client_any_more?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ZOOKEEPER-3211?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16790124#comment-16790124 ]=20 yeshuangshuang commented on ZOOKEEPER-3211: ------------------------------------------- [~hanm][~maoling] The latest development, it is found that long living connections of zk will= frequently print the following log when something goes wrong: 2019-03-05 20:11:13,214 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.= 0:2900:ZooKeeperServer@793] - Connection request from old client /127.0.0.1= :43911; will be dropped if server is in r-o mode 2019-03-05 20:11:18,817 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2900:NIOServerCnxn@349] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid= 0x1694f35e3bc0058, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220) at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFacto= ry.java:208) at java.lang.Thread.run(Thread.java:748) 2019-03-05 20:11:19,818 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2900:ZooKeeperServer@793] - Connection request from old client /127.0.0.= 1:44131; will be dropped if server is in r-o mode 2019-03-05 20:11:19,881 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2900:NIOServerCnxn@349] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid= 0x1694f35e3bc0000, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220) at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFacto= ry.java:208) at java.lang.Thread.run(Thread.java:748) 2019-03-05 20:11:19,882 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2900:ZooKeeperServer@793] - Connection request from old client /127.0.0.= 1:44135; will be dropped if server is in r-o mode 2019-03-05 20:11:20,079 [myid:] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0= .0:2900:NIOServerCnxn@349] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid= 0x1694f35e3bc0057, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220) at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFacto= ry.java:208) at java.lang.Thread.run(Thread.java:748) > zookeeper standalone mode=EF=BC=8Cfound a high level bug in kernel of cen= tos7.0 =EF=BC=8Czookeeper Server's tcp/ip socket connections(default 60 ) = are CLOSE_WAIT =EF=BC=8Cthis lead to zk can't work for client any more > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------- > > Key: ZOOKEEPER-3211 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3211 > Project: ZooKeeper > Issue Type: Bug > Components: server > Affects Versions: 3.4.5 > Environment: 1.zoo.cfg > server.1=3D127.0.0.1:2902:2903 > 2.kernel > kernel=EF=BC=9ALinux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP T= ue Feb 12 19:44:50 EST 2019 x86_64 x86_64 x86_64 GNU/Linux > JDK=EF=BC=9A > java version "1.7.0_181" > OpenJDK Runtime Environment (rhel-2.6.14.5.el7-x86_64 u181-b00) > OpenJDK 64-Bit Server VM (build 24.181-b00, mixed mode) > zk: 3.4.5 > Reporter: yeshuangshuang > Priority: Blocker > Fix For: 3.4.5 > > Attachments: 1.log, 2018-12-09_124131.png, 2018-12-09_124210.png,= 2018-12-09_132854.png, 2018-12-09_133017.png, 2018-12-09_133049.png, 2018-= 12-09_133111.png, 2018-12-09_133131.png, 2018-12-09_133150.png, 2018-12-09_= 133210.png, 2018-12-09_133229.png, 2018-12-09_133248.png, 2018-12-09_133320= .png > > Original Estimate: 168h > Remaining Estimate: 168h > > 1.config--zoo.cfg > server.1=3D127.0.0.1:2902:2903 > 2.kernel version > version=EF=BC=9ALinux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP = Tue Feb 12 19:44:50 EST 2019 x86_64 x86_64 x86_64 GNU/Linux > JDK=EF=BC=9A > java version "1.7.0_181" > OpenJDK Runtime Environment (rhel-2.6.14.5.el7-x86_64 u181-b00) > OpenJDK 64-Bit Server VM (build 24.181-b00, mixed mode) > zk: 3.4.5 > 3.bug details=EF=BC=9A > Occasionally=EF=BC=8CBut the recurrence probability is extremely high. At= first, the read-write timeout takes about 6s, and after a few minutes, all= connections (including long ones) will be CLOSE_WAIT state. > 4.:Circumvention scheme: it is found that all connections become close_wa= it to restart the zookeeper server side actively -- This message was sent by Atlassian JIRA (v7.6.3#76005)