GitHub user rnewson opened a pull request:
https://github.com/apache/couchdb-couch/pull/214
Handle open_result message that arrives after the delete
Opening a database is asynchronous, therefore it's possible for the
database to have been deleted before the open is complete. The
open_result code assumes this doesn't happen, so when it does,
couch_server crashes, taking the couch_dbs ETS table with it.
Explicitly handle the case and keep on keeping on.
COUCHDB-3241
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-couch
3241-async-open-sync-delete
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-couch/pull/214.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #214
----
commit 54890e1b8f1d44225ed559ec53f7bf1f4402435b
Author: Robert Newson <[email protected]>
Date: 2016-11-23T15:20:11Z
Handle open_result message that arrives after the delete
Opening a database is asynchronous, therefore it's possible for the
database to have been deleted before the open is complete. The
open_result code assumes this doesn't happen, so when it does,
couch_server crashes, taking the couch_dbs ETS table with it.
Explicitly handle the case and keep on keeping on.
COUCHDB-3241
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---