couchdb: Uncaught error in HTTP request for big dbs
querying /tokens db on ant:
ant:~# time curl -s --netrc-file /etc/couchdb/couchdb.netrc -X GET 'http://127.0.0.1:4096/tokens/_all_docs'|head -1 {"total_rows":592,"offset":0,"rows":[ real 0m0.050s user 0m0.000s sys 0m0.004s
shows this error in ant's error log:
[Wed, 21 Aug 2013 23:19:23 GMT] [info] [<0.21234.377>] [33124470] undefined - - 'GET' /tokens/_all_docs 200 [Wed, 21 Aug 2013 23:19:23 GMT] [error] [<0.21234.377>] [33124470] Uncaught error in HTTP request: {exit, normal} [Wed, 21 Aug 2013 23:19:23 GMT] [info] [<0.21234.377>] [33124470] Stacktrace: [{mochiweb_request,send,2}, {chttpd,send_chunk,2}, {chttpd_db,all_docs_callback,2}, {fabric_view,maybe_send_row,1}, {rexi_utils,process_mailbox,6}, {fabric_view_all_docs,go,4}, {chttpd,handle_request,1}, {mochiweb_http,headers,5}] [Wed, 21 Aug 2013 23:19:23 GMT] [info] [<0.21234.377>] [33124470] undefined - - 'GET' /tokens/_all_docs 500
however, smaller dbs can be queried fine:
root@ant:~# time curl --netrc-file /etc/couchdb/couchdb.netrc -s -X GET 'http://127.0.0.1:5984/users/_all_docs'|head -1 {"total_rows":48,"offset":0,"rows":[ real 0m0.016s user 0m0.004s sys 0m0.000s [Wed, 21 Aug 2013 23:22:32 GMT] [info] [<0.24658.377>] [2467ed45] undefined - - 'GET' /users/_all_docs 200 [Wed, 21 Aug 2013 23:22:32 GMT] [info] [<0.24658.377>] [2467ed45] 127.0.0.1 127.0.0.1:5984 GET /users/_all_docs 200 ok 8
(from redmine: created on 2013-08-21, closed on 2014-01-06, relates #5005 (closed))