Skip to content

Concurrent document updates bug #3269

Answered by wohali
vd2org asked this question in Q&A
Discussion options

You must be logged in to vote

HI @vd2org, this is expected behaviour for a CouchDB 2.x or 3.x cluster.

CouchDB 2.x and 3.x do not make any sort of immediate consistency guarantee, nor that you will "read your writes." It is an eventually consistent system.

I describe the scenario you're experiencing in great detail in my slide presentation. Start on Slide 7, which covers CouchDB 1.x, and then continue to slides 13-20, which explain the exact scenario you encountered.

The beauty of CouchDB is that all accepted changes (for which you receive a 201 or 202 response) end up in the database. If you're able to detect the difference between a 201 and a 202 response, you can identify when this occurs at runtime.

CouchDB 4.x wi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vd2org
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3269 on November 16, 2020 17:13.