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 EA874200ABE for ; Fri, 20 May 2016 22:41:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E94D41607AA; Fri, 20 May 2016 20:41:19 +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 3CCD4160A25 for ; Fri, 20 May 2016 22:41:19 +0200 (CEST) Received: (qmail 89465 invoked by uid 500); 20 May 2016 20:41: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 89425 invoked by uid 99); 20 May 2016 20:41:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2016 20:41:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E2D3A2C1F64 for ; Fri, 20 May 2016 20:41:12 +0000 (UTC) Date: Fri, 20 May 2016 20:41:12 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CURATOR-308) SimpleDistributedQueue::take() hangs if container nodes are removed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 20 May 2016 20:41:20 -0000 [ https://issues.apache.org/jira/browse/CURATOR-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294148#comment-15294148 ] ASF GitHub Bot commented on CURATOR-308: ---------------------------------------- GitHub user Randgalt opened a pull request: https://github.com/apache/curator/pull/149 [CURATOR-308] Parent container deletions could cause a hang Parent container deletions could cause a hang as the watcher would never fire. If parent containers get deleted now, reset and recreate them You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/curator CURATOR-308 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/curator/pull/149.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #149 ---- commit 9261ee622e2e2dd7b16969561cb597712f078acd Author: randgalt Date: 2016-05-20T20:39:36Z Parent container deletions could cause a hang as the watcher would never fire. If parent containers get deleted now, reset and recreate them ---- > SimpleDistributedQueue::take() hangs if container nodes are removed > ------------------------------------------------------------------- > > Key: CURATOR-308 > URL: https://issues.apache.org/jira/browse/CURATOR-308 > Project: Apache Curator > Issue Type: Bug > Components: Recipes > Affects Versions: 3.1.0 > Environment: org.apache.curator:curator-recipes 3.1.0 > org.apache.curator:curator-test 3.1.0 > Reporter: Philip Searle > Assignee: Jordan Zimmerman > Fix For: 3.1.1 > > Attachments: TestSimpleDistributedQueueHang.java > > > SimpleDistributedQueue creates the queue using container nodes if the ZooKeeper instance supports this feature. If ZooKeeper runs the container node cleanup task while SimpleDistributedQueue::take() is blocking, the call will not ever return. > A similar issue occurs when calling poll(), resulting in it delaying until the timeout has elapsed, even if a queue item was inserted after the container cleanup occurs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)