You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Damjan Georgievski (JIRA)" <ji...@apache.org> on 2016/09/27 15:10:21 UTC

[jira] [Created] (COUCHDB-3161) A canceled request to changes spams the log output

Damjan Georgievski created COUCHDB-3161:
-------------------------------------------

             Summary: A canceled request to changes spams the log output
                 Key: COUCHDB-3161
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3161
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
            Reporter: Damjan Georgievski


If I start a request like:
{code}
curl -v 'http://localhost:5984/dbname/_design/viewname/_rewrite/api/_changes?feed=longpoll&heartbeat=30000&since=now'}}
{code}
and then cancel it with ctrl-c, then after 30 seconds l get the following on stdout, thus spamming my logs:

{code}
[error] 2016-09-27T14:43:27.911968Z couchdb@localhost <0.17263.129> 0d70522852 req_err(925724482) unknown_error : normal
    [<<"chttpd:catch_error/3 L335">>,<<"chttpd:process_request/1 L301">>,<<"chttpd:handle_request_int/1 L229">>,<<"chttpd:process_request/1 L293">>,<<"chttpd:handle_request_int/1 L229">>,<<"mochiweb_http:headers/6 L122">>,<<"proc_lib:init_p_do_apply/3 L247">>]
{code}

CouchDB should silence these errors, since canceled requests are not something unexpected on the internet.

ps.
the error doesn't get logged when not going through the _rewrite

pps.
the rewrite hit is a simple
 {"from": "/api/*",    "to": "../../*"},




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)