Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-317

Deprecation comment suggests code that is not equivalent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.11.0, 3.2.0
    • Documentation
    • None

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            hibikir1 Jorge Montero
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: