eiri commented on issue #603: Error 500 when creating a db below quorum
URL: https://github.com/apache/couchdb/issues/603#issuecomment-310126529
 
 
   This one is a bit tricky. We are throwing `internal_server_error` here when 
the writers quorum not met, but we can only know that after the fact, i.e. 
after we created db on all available nodes and didn't get enough replies from 
the writers.
   
   The database is available after that, we can add docs to it and it'll be 
replicated to the rest of the nodes when they get up, so strictly speaking this 
is not a complete failure. But at the same time we want to have some kind of 
warning that the cluster is unstable, after all, if we'll get available nodes 
down and previously unavailable nodes up at the same time the database will as 
if suddenly disappear.
   
   I guess we can add a check for the nodes availability on db 
creation/deletion before starting operations and throw 412 there if we know we 
wouldn't have the quorum. It wouldn't solve the issue completely, the nodes 
could go down _during_ db creation, but at least it'll narrow the confusion 
gap. @davisp what do you think? Is it worth of try to implement?
 
----------------------------------------------------------------
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

Reply via email to