Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A canceled request to changes spams the log output #2041

Closed
vincnetas opened this issue May 31, 2019 · 2 comments
Closed

A canceled request to changes spams the log output #2041

vincnetas opened this issue May 31, 2019 · 2 comments

Comments

@vincnetas
Copy link

Description

Canceling _changes request produces [error] level log in CDB.

With big amount of users on unreliable connections listening for changes in CDB, log gets flooded with error messages which are actually not errors. This affects also _stats endpoint which reports number of 500 errors, which makes monitoring for real errors impossible.

Steps to Reproduce

Start docker :

docker run \
-d --name couch_db \
-p 5984:5984 \
--env COUCHDB_USER=admin \
--env COUCHDB_PASSWORD=thisiscouchdb \
--env NODENAME=127.0.0.1 couchdb:2.3.1

Create users DB
curl -X PUT http://127.0.0.1:5984/_users -u admin

Initiate request for changes
curl "http://127.0.0.1:5984/_users/_changes?feed=longpoll&heartbeat=10000&since=now&limit=25" -u admin

Cancel it with Ctrl+C

After 30 seconds error message gets logged (docker logs couch_db)

[error] 2019-05-31T10:29:16.271783Z couchdb@127.0.0.1 <0.3233.0> 717801f155 req_err(1125717067) unknown_error : normal
    [<<"chttpd:catch_error/3 L356">>,<<"chttpd:handle_req_after_auth/2 L322">>,<<"chttpd:process_request/1 L303">>,<<"chttpd:handle_request_int/1 L243">>,<<"mochiweb_http:headers/6 L128">>,<<"proc_lib:init_p_do_apply/3 L247">>]

Expected Behaviour

Canceling _changes request should not produce error level log message

Your Environment

2.3.1 official couchdb docker image

  • CouchDB Version used: 2.3.1
  • Browser name and version: curl
  • Operating System and version: osx
@vincnetas
Copy link
Author

Identical issue was closed as wont implement here (for older version) : https://issues.apache.org/jira/browse/COUCHDB-3161

@nickva
Copy link
Contributor

nickva commented Dec 10, 2021

Thanks for reaching out @vincnetas.

This is a duplicate of #1600 and should already be fixed in #3102

@nickva nickva closed this as completed Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants