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 897CC2009F5 for ; Sun, 8 May 2016 20:54:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 88070160A06; Sun, 8 May 2016 18:54:14 +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 D201C1609B2 for ; Sun, 8 May 2016 20:54:13 +0200 (CEST) Received: (qmail 83224 invoked by uid 500); 8 May 2016 18:54:13 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 83201 invoked by uid 99); 8 May 2016 18:54:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 May 2016 18:54:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E59502C14F4 for ; Sun, 8 May 2016 18:54:12 +0000 (UTC) Date: Sun, 8 May 2016 18:54:12 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CURATOR-315) Reconnect during InterProcessSemaphoreV2.acquire can lead to orphaned node MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 08 May 2016 18:54:14 -0000 [ https://issues.apache.org/jira/browse/CURATOR-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jordan Zimmerman resolved CURATOR-315. -------------------------------------- Resolution: Fixed Fix Version/s: 3.1.1 2.10.1 Thank you for the PR > Reconnect during InterProcessSemaphoreV2.acquire can lead to orphaned node > -------------------------------------------------------------------------- > > Key: CURATOR-315 > URL: https://issues.apache.org/jira/browse/CURATOR-315 > Project: Apache Curator > Issue Type: Bug > Components: Recipes > Affects Versions: 3.1.0, 2.10.0 > Reporter: Ulrich Geilmann > Assignee: Jordan Zimmerman > Fix For: 2.10.1, 3.1.1 > > > Acquiring and releasing a lease can lead to a leftover node when the client has to reconnect. Subsequent attempts to acquire a lease on the same path fail when max leases is reached due to these nodes. > Here's an excerpt of the client log when that happened: > {noformat} > 2016-04-11 10:50:03.634+0000 UTC - INFO org.apache.curator.ConnectionState - Connection attempt unsuccessful after 81663 (greater than max timeout of 60000). Resetting connection and trying again with a new connection. > 2016-04-11 10:50:03.638+0000 UTC - INFO org.apache.zookeeper.ZooKeeper - Session: 0x15404ee16da0015 closed > 2016-04-11 10:50:03.638+0000 UTC - INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=172.16.45.128:2181,172.16.45.192:2181,172.16.45.56:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@34129c78 > 2016-04-11 10:50:03.640+0000 UTC - INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 172.16.45.128/172.16.45.128:2181. Will not attempt to authenticate using SASL (unknown error) > 2016-04-11 10:50:03.640+0000 UTC - INFO org.apache.zookeeper.ClientCnxn - Socket connection established to 172.16.45.128/172.16.45.128:2181, initiating session > 2016-04-11 10:50:03.643+0000 UTC - INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server 172.16.45.128/172.16.45.128:2181, sessionid = 0x25404f0136d0011, negotiated timeout = 40000 > 2016-04-11 10:50:03.643+0000 UTC - INFO o.a.c.f.s.ConnectionStateManager - State change: RECONNECTED > 2016-04-11 10:50:03.644+0000 UTC - INFO o.a.c.f.r.l.InterProcessSemaphoreV2 - Sequential path not found: /locking/leases/_c_32448fde-1af3-472f-91ff-ec8a4c4b5034-lease-0000000002 > 2016-04-11 10:50:03.644+0000 UTC - INFO org.apache.zookeeper.ClientCnxn - EventThread shut down > 2016-04-11 10:50:06.625+0000 UTC - INFO o.a.c.f.r.l.InterProcessSemaphoreV2 - Lease already released > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)