Comments (3)
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:
[notice] 2020-10-17T07:22:18.239062Z nonode@nohost <0.24353.1500> d1c70dc3f1 couchdb-peer0-org1:5984 172.30.188.173 user GET /testorgschannel0_mapcc$$hcollection$simple/_all_docs?attachments=true&include_docs=true&inclusive_end=false&limit=1001&startkey=%22l%2Bxj9Mibwp%2F%2FQ9ZWKb49wURav%2FV7Qll4YkWogbSwhrQ%3D%22 200 aborted 5219
[error] 2020-10-17T07:22:18.239114Z nonode@nohost <0.24353.1500> d1c70dc3f1 Response abnormally terminated: timeout
A second later another query fails with a different error:
[error] 2020-10-17T07:22:19.131115Z nonode@nohost <0.15619.1999> 39d3b723e2 req_err(1577439538) internal_server_error : No DB shards could be opened.
[<<"fabric_util:get_shard/4 L111">>,<<"fabric_util:get_shard/4 L128">>,<<"fabric_util:get_shard/4 L128">>,<<"fabric:get_security/2 L183">>,<<"chttpd_auth_request:db_authorization_check/1 L110">>,<<"chttpd_auth_request:authorize_request/1 L19">>,<<"chttpd:handle_req_after_auth/2 L321">>,<<"chttpd:process_request/1 L306">>]
And then subsequent queries are fine again.
I agree that CouchDB should not return a 200 status for an error response.
from couchdb-documentation.
After a discussion on CouchDB slack, it appears that there is a new api option ?buffer_response=true
on view queries in v3.1.1 that ensures that the response is complete before returning back a 200. If not set the default is for the response to be streaming in which case a 200 is returned even while the response is streaming back (and may eventually abort). Given the new enhancement, I think we could close this issue (although would be good to get the API docs updated to describe this behavior).
from couchdb-documentation.
FYI this is also available as a server-wide configuration, [chttpd] buffer_response
.
from couchdb-documentation.
Related Issues (20)
- error in string sorting HOT 1
- Documentation: misleading $title in Selector Basics section HOT 1
- `POST /{db}/index` seems to desribe old behaviour.
- Make it clear which version the docs are for
- Include the SSL FAQ content as a new page in the docs HOT 1
- MacOS installation guide download link is incorrect HOT 2
- Outdated JavaScript development tips HOT 1
- Remove partial filter selector field from POST /{db}/_index query parameters list HOT 1
- Replace all references to couch_httpd_auth with chttpd_auth HOT 2
- Documentation on 3.1.1 version includes `$keyMapMatch` operator, which is missing in tag version. HOT 1
- Adding an information about max_partition_limit in the Partition Database introduction section
- Broken links (and problably travis build) because they are pointing to old master branch HOT 1
- Broken links on Installation pages HOT 2
- Reverse Proxying CouchDB in a subdirectory with nginx example does not handle URL encoded path fragments HOT 1
- Fix timeout time-unit (milliseconds instead of seconds) in /_db_updates doc page HOT 1
- I can't update couch-db via sudo apt-get update in Debain 10, I got 403 forbidden error message! HOT 2
- Couchdb repository is forbidden. HOT 1
- Linux installation information is incorrect - bintray.com service has been shut down by JFrog HOT 1
- no progress field when GET /_active_tasks HTTP/1.1 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from couchdb-documentation.