Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 39508 invoked from network); 2 Nov 2009 00:31:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Nov 2009 00:31:22 -0000 Received: (qmail 95174 invoked by uid 500); 2 Nov 2009 00:31:22 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 95087 invoked by uid 500); 2 Nov 2009 00:31:21 -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 95077 invoked by uid 99); 2 Nov 2009 00:31:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 00:31:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_HI,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; Mon, 02 Nov 2009 00:31:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6B0C9234C1F2 for ; Sun, 1 Nov 2009 16:30:59 -0800 (PST) Message-ID: <1169898157.1257121859423.JavaMail.jira@brutus> Date: Mon, 2 Nov 2009 00:30:59 +0000 (UTC) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-551) couch_log crashes on external process return In-Reply-To: <252867605.1257120419366.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Kocoloski updated COUCHDB-551: ----------------------------------- Affects Version/s: (was: 0.10) 0.11 Fix Version/s: (was: 0.10.1) I don't think _external logging is in 0.10.0 > couch_log crashes on external process return > -------------------------------------------- > > Key: COUCHDB-551 > URL: https://issues.apache.org/jira/browse/COUCHDB-551 > Project: CouchDB > Issue Type: Bug > Components: Infrastructure > Affects Versions: 0.11 > Environment: CentOS 5.3, Erlang R12 > Reporter: Christopher O'Connell > Priority: Minor > Fix For: 0.11 > > > When an external process returns a value, the couch_log process crashes. > A couchdb external process is created which returns well formed json as identified below. Whenever the process' url is accessed, couchdb correctly returns the result, however, the couch_log process crashes (log below). > To replicate this, setup an external process and make a call to it using the mapped url. > This has been observed on CentOS 5.3 with the most recent version of the 0.10 branch, using a java external process as described below. Similar behavior has also been observed on Ubuntu 9.10 using a php external process (log not included). > External Program Input: { "path":[],"query":{"hello":"world","abc":123},"verb":"GET" } > External Program Output: {"headers":{"content-type":"text/plain"},"json":{"hello":"world","abc":123},"code":"200"} > Couchdb URL: .../_exj?hello=world&abc=123 > Couchdb Response: {"hello":"world","abc":"123"} > ***** Log ***** > Apache CouchDB 0.10.0 (LogLevel=info) is starting. > Apache CouchDB has started. Time to relax. > [info] [<0.1.0>] Apache CouchDB has started on http://127.0.0.1:5984/ > [info] [<0.73.0>] EXTERNAL: Starting process for: exj > [info] [<0.73.0>] COMMAND: /usr/bin/java -cp /root/geoc externalj > =ERROR REPORT==== 1-Nov-2009::23:44:24 === > ** gen_event handler couch_log crashed. > ** Was installed in error_logger > ** Last event was: {info_report,<0.22.0>, > {<0.60.0>,couch_info, > {"~s - - ~p ~s ~B", > ["72.211.148.58",'GET', > "/airport_data/_exj?hello=world&abc=123", > <<"200">>]}}} > ** When handler state == {<0.46.0>,2} > ** Reason == {badarg,[{io_lib,format, > ["~s - - ~p ~s ~B", > ["72.211.148.58",'GET', > "/airport_data/_exj?hello=world&abc=123", > <<"200">>]]}, > {couch_log,log,5}, > {couch_log,handle_event,2}, > {gen_event,server_update,4}, > {gen_event,server_notify,4}, > {gen_event,handle_msg,5}, > {proc_lib,init_p_do_apply,3}]} > =ERROR REPORT==== 1-Nov-2009::23:44:24 === > ** Generic server couch_log terminating > ** Last message in was {gen_event_EXIT,couch_log, > {'EXIT', > {badarg, > [{io_lib,format, > ["~s - - ~p ~s ~B", > ["72.211.148.58",'GET', > "/airport_data/_exj?hello=world&abc=123", > <<"200">>]]}, > {couch_log,log,5}, > {couch_log,handle_event,2}, > {gen_event,server_update,4}, > {gen_event,server_notify,4}, > {gen_event,handle_msg,5}, > {proc_lib,init_p_do_apply,3}]}}} > ** When Server state == {error_logger,couch_log} > ** Reason for termination == > ** {'EXIT',{badarg,[{io_lib,format, > ["~s - - ~p ~s ~B", > ["72.211.148.58",'GET', > "/airport_data/_exj?hello=world&abc=123", > <<"200">>]]}, > {couch_log,log,5}, > {couch_log,handle_event,2}, > {gen_event,server_update,4}, > {gen_event,server_notify,4}, > {gen_event,handle_msg,5}, > {proc_lib,init_p_do_apply,3}]}} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.