Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 98299 invoked from network); 12 Jun 2008 15:23:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2008 15:23:36 -0000 Received: (qmail 62408 invoked by uid 500); 12 Jun 2008 15:23:38 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 62383 invoked by uid 500); 12 Jun 2008 15:23:38 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 62372 invoked by uid 99); 12 Jun 2008 15:23:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 08:23:38 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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, 12 Jun 2008 15:22:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 052AB234C139 for ; Thu, 12 Jun 2008 08:22:45 -0700 (PDT) Message-ID: <1225731955.1213284165007.JavaMail.jira@brutus> Date: Thu, 12 Jun 2008 08:22:45 -0700 (PDT) From: "Sergey Kurtsev (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Created: (COUCHDB-78) CouchDB crashed Erland MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org CouchDB crashed Erland ---------------------- Key: COUCHDB-78 URL: https://issues.apache.org/jira/browse/COUCHDB-78 Project: CouchDB Issue Type: Bug Components: Database Core Affects Versions: 0.8 Environment: Linux 2.6.25.4-30.fc9.i686 #1 SMP Wed May 21 18:12:35 EDT 2008 i686 i686 i386 GNU/Linux Reporter: Sergey Kurtsev Not sure if this is a CouchDB or Erlang bug or both. Please, forward to Erland team if appropriate. What happened: I've started several thousands of atomic inserts with modified sample php script from http://wiki.apache.org/couchdb/GettingStartedWithPhp In the middle of insert loop I initiated database compact from localhost:5984/_utils interface. Several thousands of inserts later CouchDB dumped the following error and terminated: [ ...similar successfull POSTs are cut 'till this point... ] [info] [<0.23823.0>] 127.0.0.1 - - "POST /test" 201 [info] [<0.91.0>] Compaction file still behind main file (update seq=8728. compact update seq=8727). Retrying. [info] [<0.23830.0>] 127.0.0.1 - - "POST /test" 201 [info] [<0.91.0>] Compaction file still behind main file (update seq=8729. compact update seq=8728). Retrying. [error] [emulator] Error in process <0.23848.0> with exit value: {{case_clause,{error,{{badmatch,{error,emfile}},[{couch_file,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]}}},[{couch_db,start_copy_compact_int,2}]} =ERROR REPORT==== 12-Jun-2008::19:06:07 === Error in process <0.23848.0> with exit value: {{case_clause,{error,{{badmatch,{error,emfile}},[{couch_file,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]}}},[{couch_db,start_copy_compact_int,2}]} [error] [<0.47.0>] {error_report,<0.22.0>, {<0.47.0>,supervisor_report, [{supervisor,{local,couch_server_sup}}, {errorContext,child_terminated}, {reason, {{case_clause, {error, {{badmatch,{error,emfile}}, [{couch_file,init,1}, {gen_server,init_it,6}, {proc_lib,init_p,5}]}}}, [{couch_db,start_copy_compact_int,2}]}}, {offender, [{pid,<0.90.0>}, {name,"test"}, {mfa, {couch_db,create, ["test","/usr/local/var/lib/apache-couchdb/test.couch", []]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}]}]}} [error] [<0.47.0>] {error_report,<0.22.0>, {<0.47.0>,supervisor_report, [{supervisor,{local,couch_server_sup}}, {errorContext,start_error}, {reason,file_exists}, {offender, [{pid,<0.90.0>}, {name,"test"}, {mfa, {couch_db,create, ["test","/usr/local/var/lib/apache-couchdb/test.couch", []]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}]}]}} [error] [<0.47.0>] {error_report,<0.22.0>, {<0.47.0>,supervisor_report, [{supervisor,{local,couch_server_sup}}, {errorContext,start_error}, {reason,file_exists}, {offender, [{pid,<0.90.0>}, {name,"test"}, {mfa, {couch_db,create, ["test","/usr/local/var/lib/apache-couchdb/test.couch", []]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}]}]}} [error] [<0.47.0>] {error_report,<0.22.0>, {<0.47.0>,supervisor_report, [{supervisor,{local,couch_server_sup}}, {errorContext,start_error}, {reason,file_exists}, {offender, [{pid,<0.90.0>}, {name,"test"}, {mfa, {couch_db,create, ["test","/usr/local/var/lib/apache-couchdb/test.couch", []]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}]}]}} [info] [<0.23837.0>] HTTP Error (code 500): {'EXIT', {{{case_clause, {error, {{badmatch,{error,emfile}}, [{couch_file,init,1}, {gen_server,init_it,6}, {proc_lib,init_p,5}]}}}, [{couch_db,start_copy_compact_int,2}]}, {gen_server,call, [<0.90.0>, {update_docs, [[{doc,"a2f6aac30a31e34aedc253ae17c3eaa2", ["4020863542"], {obj,[{"index",5777},{"data","Foo"}]}, [],false,[]}]], [new_edits]}]}}} [error] [<0.47.0>] {error_report,<0.22.0>, {<0.47.0>,supervisor_report, [{supervisor,{local,couch_server_sup}}, {errorContext,start_error}, {reason,file_exists}, {offender, [{pid,<0.90.0>}, {name,"test"}, {mfa, {couch_db,create, ["test","/usr/local/var/lib/apache-couchdb/test.couch", []]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}]}]}} [error] [<0.47.0>] {error_report,<0.22.0>, {<0.47.0>,supervisor_report, [{supervisor,{local,couch_server_sup}}, {errorContext,start_error}, {reason,file_exists}, {offender, [{pid,<0.90.0>}, {name,"test"}, {mfa, {couch_db,create, ["test","/usr/local/var/lib/apache-couchdb/test.couch", []]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}]}]}} {"init terminating in do_boot",shutdown} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.