Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2655D200C32 for ; Thu, 9 Mar 2017 08:15:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 24DA0160B64; Thu, 9 Mar 2017 07:15:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6ED29160B67 for ; Thu, 9 Mar 2017 08:15:44 +0100 (CET) Received: (qmail 6140 invoked by uid 500); 9 Mar 2017 07:15:43 -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 6129 invoked by uid 99); 9 Mar 2017 07:15:43 -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; Thu, 09 Mar 2017 07:15:43 +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 070091A0149 for ; Thu, 9 Mar 2017 07:15:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id si58KC8W5tqh for ; Thu, 9 Mar 2017 07:15:41 +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 027705FBE4 for ; Thu, 9 Mar 2017 07:15:41 +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 4E4AAE0A6C for ; Thu, 9 Mar 2017 07:15:39 +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 481A1243BC for ; Thu, 9 Mar 2017 07:15:38 +0000 (UTC) Date: Thu, 9 Mar 2017 07:15:38 +0000 (UTC) From: "Tharindu Kumara (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ZOOKEEPER-2715) Sessions Expire due to Network partitioning in Zookeeper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Mar 2017 07:15:45 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2715?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tharindu Kumara updated ZOOKEEPER-2715: --------------------------------------- Description:=20 Recently, carried out a test to to find the behavior of clients when a=20 client is partitioned from the ensemble.=20 Here used a ensemble of 3 zookeeper servers called A, B and C. And quorum w= as set up like below.=20 A - Follower=20 B - Leader=20 C - Follower=E2=80=8B=20 A <---> B <---> C=20 |____________| And 3 clients are connected to ensemble like below.=20 C1 is connected A=20 C2 is connected B=20 C3 is connected C.=20 To remove the network link between B and C iptables utility is used.=20 command used:=20 iptables -I INPUT -s Server_B_IP -j DROP=20 iptables -I INPUT -s Server_C_IP -j DROP=20 After removing the link connections looks like below.=20 A <----> B C=20 |____________| Simply there is no way to send any packets from from B to C and vice versa.= But the connection exists between between B and C. Here What I noticed is that the client connected to Zookeeper Server "C", c= ould not connect to the ensemble resulting a session expiration timeout.=20 For this experiment I used tickTime of 3000ms and client session expiration= timeout of 45000ms. And tested with different combinations also.=20 was: Recently, carried out a test to to find the behavior of clients when a=20 client is partitioned from the ensemble.=20 Here used a ensemble of 3 zookeeper servers called A, B and C. And quorum w= as set up like below.=20 A - Follower=20 B - Leader=20 C - Follower=E2=80=8B=20 A <---> B <---> C=20 \__________/=20 And 3 clients are connected to ensemble like below.=20 C1 is connected A=20 C2 is connected B=20 C3 is connected C.=20 To remove the network link between B and C iptables utility is used.=20 command used:=20 iptables -I INPUT -s Server_B_IP -j DROP=20 iptables -I INPUT -s Server_C_IP -j DROP=20 After removing the link connections looks like below.=20 A <----> B C=20 \___________/=20 Simply there is no way to send any packets from from B to C and vice versa.= But the connection exists between between B and C. Here What I noticed is that the client connected to Zookeeper Server "C", c= ould not connect to the ensemble resulting a session expiration timeout.=20 For this experiment I used tickTime of 3000ms and client session expiration= timeout of 45000ms. And tested with different combinations also.=20 > Sessions Expire due to Network partitioning in Zookeeper=20 > --------------------------------------------------------- > > Key: ZOOKEEPER-2715 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2715 > Project: ZooKeeper > Issue Type: Bug > Components: c client > Affects Versions: 3.4.9 > Reporter: Tharindu Kumara > > Recently, carried out a test to to find the behavior of clients when a=20 > client is partitioned from the ensemble.=20 > Here used a ensemble of 3 zookeeper servers called A, B and C. And quorum= was set up like below.=20 > A - Follower=20 > B - Leader=20 > C - Follower=E2=80=8B=20 > A <---> B <---> C=20 > |____________| > And 3 clients are connected to ensemble like below.=20 > C1 is connected A=20 > C2 is connected B=20 > C3 is connected C.=20 > To remove the network link between B and C iptables utility is used.=20 > command used:=20 > iptables -I INPUT -s Server_B_IP -j DROP=20 > iptables -I INPUT -s Server_C_IP -j DROP=20 > After removing the link connections looks like below.=20 > A <----> B C=20 > |____________| > Simply there is no way to send any packets from from B to C and vice vers= a. But the connection exists between between B and C. > Here What I noticed is that the client connected to Zookeeper Server "C",= could not connect to the ensemble resulting a session expiration timeout.= =20 > For this experiment I used tickTime of 3000ms and client session expirati= on timeout of 45000ms. And tested with different combinations also.=20 -- This message was sent by Atlassian JIRA (v6.3.15#6346)