From dev-return-68044-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Wed Mar 7 11:39:04 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 4BD64180656 for ; Wed, 7 Mar 2018 11:39:04 +0100 (CET) Received: (qmail 82768 invoked by uid 500); 7 Mar 2018 10:39: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 82757 invoked by uid 99); 7 Mar 2018 10:39:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2018 10:39:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9B8991A023B for ; Wed, 7 Mar 2018 10:39:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ZXrnrAvP-w1o for ; Wed, 7 Mar 2018 10:39: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 36E795F2EC for ; Wed, 7 Mar 2018 10:39: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 A604CE0308 for ; Wed, 7 Mar 2018 10:39: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 4E823253FB for ; Wed, 7 Mar 2018 10:39:00 +0000 (UTC) Date: Wed, 7 Mar 2018 10:39:00 +0000 (UTC) From: "Andor Molnar (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2172) Cluster crashes when reconfig a new node as a participant 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-2172?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16389378#comment-16389378 ]=20 Andor Molnar commented on ZOOKEEPER-2172: ----------------------------------------- [~yuvald] Are you sure about it's the same issue? Dynamic reconfig is a 3.5+ feature. > Cluster crashes when reconfig a new node as a participant > --------------------------------------------------------- > > Key: ZOOKEEPER-2172 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2172 > Project: ZooKeeper > Issue Type: Bug > Components: leaderElection, quorum, server > Affects Versions: 3.5.0 > Environment: Ubuntu 12.04 + java 7 > Reporter: Ziyou Wang > Assignee: Mohammad Arshad > Priority: Critical > Fix For: 3.5.3, 3.6.0 > > Attachments: ZOOKEEPER-2172-02.patch, ZOOKEEPER-2172-03.patch, ZO= OKEEPER-2172-04.patch, ZOOKEEPER-2172-06.patch, ZOOKEEPER-2172-07.patch, ZO= OKEEPER-2172.patch, ZOOKEPER-2172-05.patch, history.txt, node-1.log, node-2= .log, node-3.log, zoo-1.log, zoo-2-1.log, zoo-2-2.log, zoo-2-3.log, zoo-2.l= og, zoo-2212-1.log, zoo-2212-2.log, zoo-2212-3.log, zoo-3-1.log, zoo-3-2.lo= g, zoo-3-3.log, zoo-3.log, zoo-4-1.log, zoo-4-2.log, zoo-4-3.log, zoo.cfg.d= ynamic.10000005d, zoo.cfg.dynamic.next, zookeeper-1.log, zookeeper-1.out, z= ookeeper-2.log, zookeeper-2.out, zookeeper-3.log, zookeeper-3.out > > > The operations are quite simple: start three zk servers one by one, then = reconfig the cluster to add the new one as a participant. When I add the t= hird one, the zk cluster may enter a weird state and cannot recover. > =20 > I found =E2=80=9C2015-04-20 12:53:48,236 [myid:1] - INFO [ProcessT= hread(sid:1 cport:-1)::PrepRequestProcessor@547] - Incremental reconfig=E2= =80=9D in node-1 log. So the first node received the reconfig cmd at 12:53:= 48. Latter, it logged =E2=80=9C2015-04-20 12:53:52,230 [myid:1] - ERROR [L= earnerHandler-/10.0.0.2:55890:LearnerHandler@580] - Unexpected exception ca= using shutdown while sock still open=E2=80=9D and =E2=80=9C2015-04-20 12:53= :52,231 [myid:1] - WARN [LearnerHandler-/10.0.0.2:55890:LearnerHandler@595= ] - ******* GOODBYE /10.0.0.2:55890 ********=E2=80=9D. From then on, the f= irst node and second node rejected all client connections and the third nod= e didn=E2=80=99t join the cluster as a participant. The whole cluster was d= one. > =20 > When the problem happened, all three nodes just used the same dynami= c config file zoo.cfg.dynamic.10000005d which only contained the first two = nodes. But there was another unused dynamic config file in node-1 directory= zoo.cfg.dynamic.next which already contained three nodes. > =20 > When I extended the waiting time between starting the third node and= reconfiguring the cluster, the problem didn=E2=80=99t show again. So it sh= ould be a race condition problem. -- This message was sent by Atlassian JIRA (v7.6.3#76005)