Document query_response option #628
Comments
We see the same intermittent problem in CouchDB 3.1.0 (single node). _all_docs requests are returning fine (1000 records each in about 300ms) and then all of a sudden we get a 200 aborted on the next similar query after about 5 seconds:
A second later another query fails with a different error:
And then subsequent queries are fine again. I agree that CouchDB should not return a 200 status for an error response. |
After a discussion on CouchDB slack, it appears that there is a new api option |
FYI this is also available as a server-wide configuration, |
Description
When querying all documents from a database it happens that the http client is not telling that not all data could be read from the database.
We send the same request several times a day and response contains nearly always the expected 10k documents.
From time to time (every other week) the a response for the same query contains e.g. only 8k documents instead of expected 10k.
When this happen we see in couchdb.log the message "aborted" and short after the error "timeout".
The couchdb contains approx. 100 database, but it happens from time to time for 3 different databases only.
The affected databases contain each approx. 10k docs (1 doc approx. 3k bytes)
We run the same application in multiple environments but find this behaviour in one environment only.
We can run thousands of the same request and it does not happen for multiple days.
This happen in a clustered couchdb.
Steps to Reproduce
We cannot reproduce this issue systematically.
We send a request like
curl "http://[user]:[pw]@localhost/database1/_all_docs?include_docs=true
Every other week (not at a specific time) we find in couchdb.log the related error.
We are not sure how to further trace the "aborted" symptom inside couchdb, eventually we add trace to the go-driver to figure out more and to decide if that is a couchdb issue or client driver issue.
Expected Behaviour
Your Environment
Additional Context
We upgraded to 3.1.0 short after it was released but cannot prove if we saw this behaviour only since then.
At the time where it happen no other unusual errors or activities has been seen in couchdb.log.
cpu/memory also do not show major anomalies.
Lines from couchdb.log
The text was updated successfully, but these errors were encountered: