From dev-return-76635-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu Dec 13 04:21:07 2018 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 1388E180676 for ; Thu, 13 Dec 2018 04:19:08 +0100 (CET) Received: (qmail 684 invoked by uid 500); 13 Dec 2018 03:19: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 666 invoked by uid 99); 13 Dec 2018 03:19:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2018 03:19:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 706EB180CE3 for ; Thu, 13 Dec 2018 03:19:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RotH3HAgBhED for ; Thu, 13 Dec 2018 03:19:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1CFEB5F124 for ; Thu, 13 Dec 2018 03:19: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 AC1E2E092E for ; Thu, 13 Dec 2018 03:19: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 5BB5D2531E for ; Thu, 13 Dec 2018 03:19:00 +0000 (UTC) Date: Thu, 13 Dec 2018 03:19: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= 16719703#comment-16719703 ]=20 yeshuangshuang commented on ZOOKEEPER-3211: ------------------------------------------- I have seen a futex bug in Linux on the Internet before. However, when ther= e was a problem, no deadlock problem was found with jstack. At present, we = have used zk 3.4.5 for 4-5 years, and this bug was encountered for the firs= t time. However, this version of kernel has been upgraded to block related = IO drivers. Does this cause CLOSE_WAIT for zk? It looks like zk Server is d= eadlocked [~maoling] > 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, zklog.rar > > 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)