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-341) create().orSetData() retries indefinitely if node exists
Date Sun, 14 Aug 2016 23:36:20 GMT

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

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

Github user asfgit closed the pull request at:

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


> create().orSetData() retries indefinitely if node exists
> --------------------------------------------------------
>
>                 Key: CURATOR-341
>                 URL: https://issues.apache.org/jira/browse/CURATOR-341
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 3.0.0
>            Reporter: Henrik Nordvik
>             Fix For: 3.2.1
>
>
> 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:
> {code}
> CuratorEvent event2 = queue.poll(new Timing().milliseconds(), TimeUnit.MILLISECONDS);
> Assert.assertNull(event2);
> {code}
> (slows down test, but just to demonstrate it)
> Seems like CreateBuilderImpl.backgroundSetData() shouldn't requeue mainOperation after
doing setData.
> {code}
> client.queueOperation(mainOperationAndData);
> {code}



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

Mime
View raw message