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

create().orSetData() retries indefinitely if node exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.2.1
    • Framework
    • None

    Description

      Symptom:
      One call to create.orSetData().inBackground(callback) writes the data to zookeeper infinitely many times. Version numbers in stat increase quickly. Callback is also called multiple times.

      Added the following to TestFramework.testCreateOrSetData() to make it fail:

      CuratorEvent event2 = queue.poll(new Timing().milliseconds(), TimeUnit.MILLISECONDS);
      Assert.assertNull(event2);
      

      (slows down test, but just to demonstrate it)

      Seems like CreateBuilderImpl.backgroundSetData() shouldn't requeue mainOperation after doing setData.

      client.queueOperation(mainOperationAndData);
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zerd Henrik Nordvik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: