calonso opened a new issue #603: Error 500 when creating a db below quorum URL: https://github.com/apache/couchdb/issues/603 ## Expected Behavior On a 4 nodes cluster, having two down, if I try to create a new database the server should either reject the request or accept it returning a 202 status code. Once the down nodes come back, the new db should be replicated to them. ## Current Behavior Currently an error 500 is returned but the db is indeed created (not sure if it replicated when the down nodes came back). ## Possible Solution Return a more friendlier status code as `202 Accepted` if the db was actually created or completely reject it with a `412 Precondition Failed` instead. ## Steps to Reproduce (for bugs) 1. Setup a 4 nodes cluster 2. Bring 2 of them down 3. `curl -X PUT "http://xxx.xxx.xxxx.xxx:5984/testdb"` 4. An error 500 is returned. 5. `curl -X GET "http://xxx.xxx.xxx.xxx:5984/_all_dbs"` will return `testdb` ## Context I'm building a [CouchDB automatic administration toolset](https://github.com/cabify/couchdb-admin) and I was trying out different scenarios to see it working, in this case I was simulating an operation where on a cluster without quorum (4 nodes, 2 of them down), one tries to create a new database. ## Your Environment It is a Kubernetes managed cluster where the Docker image in use is [https://hub.docker.com/r/klaemo/couchdb/](https://hub.docker.com/r/klaemo/couchdb/) * Version used: 2.0.0 * Link to your project: [https://github.com/cabify/couchdb-admin](https://github.com/cabify/couchdb-admin) ---------------------------------------------------------------- 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
