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
- is related to
-
CURATOR-268 Curator client doesn't behave well when it loses connection: CRUD operation fail
- Resolved
- links to