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/02/28 20:30:24 UTC
[GitHub] [couchdb] nickva opened a new pull request #2617: Handle race
condition during concurrent db creation
nickva opened a new pull request #2617: Handle race condition during concurrent db creation
URL: https://github.com/apache/couchdb/pull/2617
Previously concurrent db creation requests could get past db_exists/1 and try
to create the shard document. The first one would succeed but the others would
fail with a `500 {"error":"error", "reason":"conflict"}` error instead of
`412`.
Handle the race condition by checking if db exists after getting a conflict
error and return a 412 response.
Fixes: #2613
Companion PR to https://github.com/apache/couchdb/pull/2614 which was merge already
## Checklist
- [x] Code is written and works correctly
- [x] Changes are covered by tests
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [couchdb] nickva merged pull request #2617: Handle race condition
during concurrent db creation
Posted by GitBox <gi...@apache.org>.
nickva merged pull request #2617: Handle race condition during concurrent db creation
URL: https://github.com/apache/couchdb/pull/2617
----------------------------------------------------------------
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
With regards,
Apache Git Services