Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 086E010B69 for ; Sun, 23 Feb 2014 10:09:51 +0000 (UTC) Received: (qmail 99680 invoked by uid 500); 23 Feb 2014 10:09:49 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 99638 invoked by uid 500); 23 Feb 2014 10:09:48 -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 99574 invoked by uid 99); 23 Feb 2014 10:09:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Feb 2014 10:09:47 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 23 Feb 2014 10:09:45 +0000 Received: (qmail 99359 invoked by uid 99); 23 Feb 2014 10:09:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Feb 2014 10:09:23 +0000 Date: Sun, 23 Feb 2014 10:09:23 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@curator.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CURATOR-73) No reliable way to restart leadership in LeaderSelector when connection fails due to edge cases MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CURATOR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jordan Zimmerman resolved CURATOR-73. ------------------------------------- Resolution: Fixed I applied the patch but left the original clearIsQueued() as it was. This has been merged into master and pushed. > No reliable way to restart leadership in LeaderSelector when connection fails due to edge cases > ----------------------------------------------------------------------------------------------- > > Key: CURATOR-73 > URL: https://issues.apache.org/jira/browse/CURATOR-73 > Project: Apache Curator > Issue Type: Bug > Components: Recipes > Affects Versions: 2.3.0 > Reporter: Henrik Nordvik > Assignee: Jordan Zimmerman > Fix For: 2.4.1 > > Attachments: CURATOR-73.patch > > > This is related to CURATOR-54, and possibly also CURATOR-62. > If a LeaderSelector-thread is cancelled (e.g. because of lost connection to zookeeper), there is no way of restarting it. > First it jumps out of the doWork-loop, because the interrupt flag is set. > The isQueued flag is not reset when this happens, so requeue() does nothing, even though the thread has been parked. > I'm using curator 2.3.0 with the new ListenerAdapter-way of handling stateChange(). -- This message was sent by Atlassian JIRA (v6.1.5#6160)