Details
Description
after creating a view there is a 30+ seconds time gap that if the user tries to query for the results /view will return different errors , no_db_file and not_found_missing
{'status': '404', 'content-length': '44', 'server': 'CouchDB/1.2.0a-4fd74dc-git (Erlang OTP/R14B03)', 'cache-control': 'must-revalidate', 'date': 'Wed, 27 Jul 2011 01:53:07 GMT', 'content-type': 'text/plain;charset=utf-8'} {"error":"not_found","reason":"no_db_file"}and then
{"total_rows":15,"rows":[{"error":true,"from":null,"reason":"
{not_found,missing}"},{"error":true,"from":null,"reason":"{not_found,missing}
"},
but after the initial bootstrap time user will not see any error during retrievng the view
so the workaround for now is that sdk libraries should wait until the view is replicated across all vbuckets
but the long term fix would be to make create and update view atomic ( thats what couchdb does)