You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Cameron McKenzie (JIRA)" <ji...@apache.org> on 2016/04/21 02:37:25 UTC

[jira] [Resolved] (CURATOR-317) Deprecation comment suggests code that is not equivalent

     [ https://issues.apache.org/jira/browse/CURATOR-317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cameron McKenzie resolved CURATOR-317.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.1
                   2.10.1

> Deprecation comment suggests code that is not equivalent
> --------------------------------------------------------
>
>                 Key: CURATOR-317
>                 URL: https://issues.apache.org/jira/browse/CURATOR-317
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Jorge Montero
>            Priority: Trivial
>             Fix For: 2.10.1, 3.1.1
>
>
> An old deprecation (from 2012) recommended replacing withProtectedEphemeralSequential() with 
> withProtection().withMode(CreateMode.PERSISTENT_SEQUENTIAL), which does not do the same thing! Anyone making that replacement will get persistent nodes instead of ephemeral modes, which can cause all kinds of trouble (it definitely did for us!)
> It should be replaced with code that actually does the same thing as the old implementation: 				.withProtection().withMode(CreateMode.EPHEMERAL_SEQUENTIAL)



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