We use views a lot to query for data. In the past month our development server views started returning ids that do not exist in the actual database. Not all ids returned from a view do not exist, just some of them. Not only do they not exist, but they cause the server to hang trying to retrieve them. If I search in the couchbase console for an id that just never existed in the db I immediately get the error: “document does not exist”. If I search for one of these problem ids
returned by a view it just hangs for a while and eventually times out. We use the couchbase nodejs sdk to retrieve documents for our web portal, and if it does a getMulti with one of these ids it silently kills the connection. We can search for as many ids as we want after and we will not get any error, but every get will return a timeout until we
restart the connection.
In the couchbase logs I see this error when searching for one of the ids:
[ns_server:error,2016-04-20T19:54:53.749,ns_1@127.0.0.1:<0.19748.148>:menelaus_web:loop:170]Server error during processing: ["web request failed",
{path,
"/pools/default/buckets/<bucket name>/docs/ffb9f1de-d0e1-4711-abb9-e46e5be5ad5e"},
{type,error},
{what,
{case_clause,
{badrpc,
{'EXIT',
{{badmatch,{error,timeout}},
{gen_server,call,
[{'ns_memcached-todos',
'ns_1@127.0.0.1'},
{get,
<<"ffb9f1de-d0e1-4711-abb9-e46e5be5ad5e">>,
9},
180000]}}}}}},
{trace,
[{menelaus_web_crud,handle_get,3,
[{file,"src/menelaus_web_crud.erl"},
{line,166}]},
{request_throttler,do_request,3,
[{file,"src/request_throttler.erl"},
{line,59}]},
{menelaus_web,loop,2,
[{file,"src/menelaus_web.erl"},
{line,149}]},
{mochiweb_http,headers,5,
[{file,
"/home/buildbot/buildbot_slave/ubuntu-1204-x64-30x-builder/build/build/couchdb/src/mochiweb/mochiweb_http.erl"},
{line,94}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}]
Is anyone familiar with this error or know what is wrong with our views and how we can repair them?