curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Nordvik (JIRA)" <>
Subject [jira] [Created] (CURATOR-341) create.orSetData() retries indefinitely if node exists
Date Tue, 09 Aug 2016 11:13:20 GMT
Henrik Nordvik created CURATOR-341:

             Summary: create.orSetData() retries indefinitely if node exists
                 Key: CURATOR-341
             Project: Apache Curator
          Issue Type: Bug
          Components: Framework
    Affects Versions: 3.0.0
            Reporter: Henrik Nordvik

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);
(slows down test, but just to demonstrate it)

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

This message was sent by Atlassian JIRA

View raw message