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-190) PersistentEphemeralNode.Mode.PROTECTED_EPHEMERAL creates new node on recreate
Date Tue, 03 Mar 2015 22:13:05 GMT

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

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

GitHub user cammckenzie opened a pull request:

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

    CURATOR-190 - Modified to always use the base name when creating protect...

    Modified to always use the base name when creating protected ephemeral nodes. This prevents
the current protected name being appended to the name each time the node is created, which
in turn prevents multiple
    nodes being created.

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

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

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

    https://github.com/apache/curator/pull/69.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 #69
    
----
commit 9fe802ec238b8ae7b5f77e61cac7e25c8f42f6d9
Author: Cameron McKenzie <cameron@unico.com.au>
Date:   2015-03-03T22:09:01Z

    CURATOR-190 - Modified to always use the base name when creating protected
    ephemeral nodes. This prevents the current protected name being appended
    to the name each time the node is created, which in turn prevents multiple
    nodes being created.

----


> PersistentEphemeralNode.Mode.PROTECTED_EPHEMERAL creates new node on recreate
> -----------------------------------------------------------------------------
>
>                 Key: CURATOR-190
>                 URL: https://issues.apache.org/jira/browse/CURATOR-190
>             Project: Apache Curator
>          Issue Type: Bug
>    Affects Versions: 2.6.0, 2.7.0, 2.7.1
>            Reporter: John Vines
>            Assignee: Cameron McKenzie
>
> PersistentEphemeralNode, when using a PROTECTED one, will create a new node with a name
that looks like it padded itself again.
> ex- I had a PEN, /test. With first create, it yielded:
> _c_03053942-4e11-4cf2-be75-7e689a9b2e98-test.
> I then bounced zk to emulate a disconnect and I saw the following two nodes-
> _c_03053942-4e11-4cf2-be75-7e689a9b2e98-_c_03053942-4e11-4cf2-be75-7e689a9b2e98-test
> _c_03053942-4e11-4cf2-be75-7e689a9b2e98-test
> Every time I bounce it, I prepends another _c_03053942-4e11-4cf2-be75-7e689a9b2e98- onto
the node name. All of these nodes seem to live until the PEN is closed.



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

Mime
View raw message