Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 52530 invoked from network); 6 Aug 2009 15:45:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Aug 2009 15:45:38 -0000 Received: (qmail 54202 invoked by uid 500); 6 Aug 2009 15:45:44 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 54109 invoked by uid 500); 6 Aug 2009 15:45:44 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 54099 invoked by uid 99); 6 Aug 2009 15:45:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 15:45:44 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 15:45:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D6AAD234C04C for ; Thu, 6 Aug 2009 08:45:14 -0700 (PDT) Message-ID: <557503200.1249573514878.JavaMail.jira@brutus> Date: Thu, 6 Aug 2009 08:45:14 -0700 (PDT) From: "Chris Anderson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-452) couch logs an [error] record if a client disconnects In-Reply-To: <2010134692.1249435934915.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740117#action_12740117 ] Chris Anderson commented on COUCHDB-452: ---------------------------------------- The special case matches were added one at a time, because those are two special cases where having a stacktrace in the logs can help with debugging on the ML and IRC. However, the general matcher now logs a stacktrace just the same as they did, so it's fine to let the general case handle them. (I guess we finally got few enough errors coming from deep within CouchDB that a stacktrace on any uncaught error works fine.) Removing the special case matchers just cleans up the code and does not change functionality. > couch logs an [error] record if a client disconnects > ---------------------------------------------------- > > Key: COUCHDB-452 > URL: https://issues.apache.org/jira/browse/COUCHDB-452 > Project: CouchDB > Issue Type: Improvement > Reporter: Mark Hammond > Attachments: dont_log_error_on_disconnect.patch > > > If a client makes a request which returns multiple rows (eg, a query) but disconnects before reading the response, couch logs: > [error] [<0.66.0>] Uncaught error in HTTP request: {exit,normal} > [info] [<0.66.0>] Stacktrace: [{mochiweb_request,send,2}, > {couch_httpd,send_chunk,2}, > {couch_httpd_view,send_json_view_row,5}, > {couch_httpd_view,'-make_view_fold_fun/6-fun-0-',12}, > {couch_view,fold_fun,4}, > {couch_btree,stream_kv_node2,7}, > {couch_btree,stream_kp_node,7}, > {couch_btree,fold,5}] > This could lead someone to conclude couch has an error which is not correct. A simple [info] record recording the premature normal exit is probably more appropriate. > FYI, the easiest way I found to repro this was to execute: > % python -c "import urllib; urllib.urlopen('http://127.0.0.1:5984/your_db/_design/your_design_doc/_view/your_view?reduce=false').close()" > which causes Python to open a connection and close it without reading anything. I'll attach a patch as suggested generally by jchris. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.