janl opened a new issue #872: make peruser reasonable URL: https://github.com/apache/couchdb/issues/872 (via https://github.com/apache/couchdb/pull/756#issuecomment-334919162) couch_peruser doesn?t handle the case of the node it being run on failing and restarting. This is less an issue, if [Problem No. 1](https://github.com/apache/couchdb/pull/756#issuecomment-334919162) isn?t solved yet, as in a typical cluster there are at least two more instances of this module running that could create the database. But say we fix Problem No. 1 (as outlined in https://github.com/apache/couchdb/pull/756#issuecomment-334919162) so that each user creation will only ever result in a single attempt to create the associated database. Then, what should happen if in between picking up the notification to create the database and doing the DB creation, the current node becomes unavailable? The module currently opens _changes on startup and asserts all user/db creations corresponding to the _users db. That is, if there are 100k users, on startup, the module will try to create 100k databases, even if they already exist. A solution to this would be to add per-node high-watermark _local/ docs, so we can more efficiently resume, but I?ll keep this as out of scope for this PR. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
