You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/11/16 16:27:57 UTC

[GitHub] [couchdb] vd2org opened a new issue #3269: Concurrent document updates bug

vd2org opened a new issue #3269:
URL: https://github.com/apache/couchdb/issues/3269


   In some cases, the database allows you to update the same document with the same revision twice.
   
   ## Description
   
   Sometimes, when two processes update the same document at the same time (5-150 ms between requests) with the same initial revision, both requests complete normally without creating conflicting documents, and the database keeps both updates with consistent revisions. All requests are sent to the same cluster instance.
   
   Step by step:
   
   - Document created with revision 1.
   - Document updating by two workers from revision 1 at the same time.
   
   Then i have three revisions in database - 1, 2 and 3.
   
   ## Steps to Reproduce
   
   I cannot reproduce this error locally or in a development environment, but it sometimes happens in a production environment.
   
   ## Expected Behaviour
   
   A 409 response from one of requests or a document conflict within the database.
   
   ## Your Environment
   
   CouchDB in cluster mode. 3 instances of CouchDB on three nodes.
   
   * CouchDB version used: 3.1.1
   * Operating system and version: Docker under Debian
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb] wohali closed issue #3269: Concurrent document updates bug

Posted by GitBox <gi...@apache.org>.
wohali closed issue #3269:
URL: https://github.com/apache/couchdb/issues/3269


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org