curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CURATOR-297) Curator quickly starting+stopping a persistent ephemeral node causes dangling ephemeral node
Date Tue, 02 Feb 2016 18:27:39 GMT

    [ https://issues.apache.org/jira/browse/CURATOR-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128735#comment-15128735
] 

ASF GitHub Bot commented on CURATOR-297:
----------------------------------------

GitHub user Randgalt opened a pull request:

    https://github.com/apache/curator/pull/130

    [CURATOR-297] Handle quick close after start for PersistentNode

    Because start() creates the node async, if close is called immediately, it might occur
before the node creation. Handle this edge case by having the background response delete (async)
the node if the instance has been closed

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/curator CURATOR-297

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/curator/pull/130.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 #130
    
----
commit e5afda580e2c7540f5095e1894c6866ce4ace8db
Author: randgalt <randgalt@apache.org>
Date:   2016-02-02T18:26:13Z

    Because start() creates the node async, if close is called immediately, it might occur
before the node creation. Handle this edge case by having the background response delete (async)
the node if the instance has been closed

----


> Curator quickly starting+stopping a persistent ephemeral node causes dangling ephemeral
node
> --------------------------------------------------------------------------------------------
>
>                 Key: CURATOR-297
>                 URL: https://issues.apache.org/jira/browse/CURATOR-297
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Recipes
>    Affects Versions: 3.0.0, 2.9.1
>            Reporter: Jordan Zimmerman
>            Assignee: Jordan Zimmerman
>             Fix For: 3.0.1, 2.9.2
>
>
> Start a PEN and then immediately close it. In most cases, the async node created during
start will not execute before the close executes and, thus, the node will be leaked.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message