Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 76169 invoked from network); 15 Aug 2009 02:32:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Aug 2009 02:32:31 -0000 Received: (qmail 52818 invoked by uid 500); 15 Aug 2009 02:32:37 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 52718 invoked by uid 500); 15 Aug 2009 02:32:37 -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 52708 invoked by uid 99); 15 Aug 2009 02:32:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2009 02:32:37 +0000 X-ASF-Spam-Status: No, hits=-1997.3 required=10.0 tests=ALL_TRUSTED,FS_REPLICA,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; Sat, 15 Aug 2009 02:32:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C61FE234C004 for ; Fri, 14 Aug 2009 19:32:14 -0700 (PDT) Message-ID: <1817258952.1250303534797.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 19:32:14 -0700 (PDT) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-193) Replicating a DB to itself puts the server in a strange state 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-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743526#action_12743526 ] Adam Kocoloski commented on COUCHDB-193: ---------------------------------------- Hah, now I see what's happening on trunk -- when the target tries to save the _local doc it fails as a conflict (because the source has already saved it). Then I try to turn the string <<"Invalid rev format">> into a revision and everything crashes. Perhaps couch_rep_httpc should just throw an exception if it encounters a conflict. > Replicating a DB to itself puts the server in a strange state > ------------------------------------------------------------- > > Key: COUCHDB-193 > URL: https://issues.apache.org/jira/browse/COUCHDB-193 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Reporter: Maximillian Dornseif > Assignee: Adam Kocoloski > > I initiated by error a replication to the local machine in a totally stupid fashion. Basically I did something like this (using python-couchdb): > src_server = couchdb.client.Server('http://localhost:5984') > src_server.resource.post('_replicate', {'source': dbname, 'target': 'http://localhost:5984/%s' % dbname}) > This resulted in the following strange log entries. The strange thing is, it pushed the server in a "strange" state, where I even wasn't able to create new databases. > 2009-01-04 20:14:38.221693500 [info] [<0.22446.191>] 172.28.4.107 - - 'PUT' /hulog_events_test/_local%2Fbalancer:hulog_events_test:http:%2F%2Fcouchdb.local.xxx:5984%2Fhulog_events_test 412 > 2009-01-04 20:14:38.221698500 [info] [<0.20194.191>] 172.30.20.74 - - 'POST' /_replicate 200 > 2009-01-04 20:15:47.905980500 [info] [<0.22451.191>] 127.0.0.1 - - 'GET' /hulog_events/ 200 > 2009-01-04 20:20:54.741438500 [info] [<0.22654.191>] 127.0.0.1 - - 'GET' /hulog_events/ 200 > 2009-01-04 20:25:47.221129500 [info] [<0.22655.191>] 127.0.0.1 - - 'GET' /hulog_events/ 200 > 2009-01-04 20:28:03.452784500 [info] [<0.22656.191>] 172.30.20.74 - - 'GET' /_utils/browse/_create_database.html 200 > 2009-01-04 20:28:18.445906500 [error] [<0.22656.191>] {error_report,<0.22.0>, > 2009-01-04 20:28:18.445910500 {<0.22656.191>,crash_report, > 2009-01-04 20:28:18.445913500 [[{pid,<0.22656.191>}, > 2009-01-04 20:28:18.445915500 {registered_name,[]}, > 2009-01-04 20:28:18.445917500 {error_info, > 2009-01-04 20:28:18.445919500 {exit, > 2009-01-04 20:28:18.445921500 {timeout, > 2009-01-04 20:28:18.445923500 {gen_server,call, > 2009-01-04 20:28:18.445925500 [couch_server, > 2009-01-04 20:28:18.445928500 {create,<<"mypl_audit_replication">>, > 2009-01-04 20:28:18.445957500 [{user_ctx,{user_ctx,null,[<<"_admin">>]}}]}]}}, > 2009-01-04 20:28:18.445960500 [{gen_server,call,2}, > 2009-01-04 20:28:18.445962500 {couch_server,create,2}, > 2009-01-04 20:28:18.445965500 {couch_httpd_db,create_db_req,2}, > 2009-01-04 20:28:18.445967500 {couch_httpd,handle_request,3}, > 2009-01-04 20:28:18.445969500 {mochiweb_http,headers,4}, > 2009-01-04 20:28:18.445976500 {proc_lib,init_p_do_apply,3}]}}, > 2009-01-04 20:28:18.445978500 {initial_call,{mochiweb_socket_server,acceptor_loop,['Argument__1']}}, > 2009-01-04 20:28:18.445981500 {ancestors, > 2009-01-04 20:28:18.445983500 [couch_httpd,couch_secondary_services,couch_server_sup,<0.1.0>]}, > 2009-01-04 20:28:18.445985500 {messages,[]}, > 2009-01-04 20:28:18.445988500 {links,[#Port<0.1869511>,<0.56.0>]}, > 2009-01-04 20:28:18.445994500 {dictionary,[]}, > 2009-01-04 20:28:18.445996500 {trap_exit,false}, > 2009-01-04 20:28:18.445998500 {status,running}, > 2009-01-04 20:28:18.446000500 {heap_size,4181}, > 2009-01-04 20:28:18.446002500 {stack_size,23}, > 2009-01-04 20:28:18.446014500 {reductions,5599}], > 2009-01-04 20:28:18.446016500 []]}} > 2009-01-04 20:28:19.096792500 [error] [<0.56.0>] {error_report,<0.22.0>, > 2009-01-04 20:28:19.096796500 {<0.56.0>,std_error, > 2009-01-04 20:28:19.096798500 {mochiweb_socket_server,235, > 2009-01-04 20:28:19.096800500 {child_error, > 2009-01-04 20:28:19.096802500 {timeout, > 2009-01-04 20:28:19.096804500 {gen_server,call, > 2009-01-04 20:28:19.096807500 [couch_server, > 2009-01-04 20:28:19.096809500 {create,<<"mypl_audit_replication">>, > 2009-01-04 20:28:19.096811500 [{user_ctx,{user_ctx,null,[<<"_admin">>]}}]}]}}}}}} > 2009-01-04 20:28:19.190123500 > 2009-01-04 20:28:19.190127500 =ERROR REPORT==== 4-Jan-2009::20:28:19 === > 2009-01-04 20:28:19.190130500 {mochiweb_socket_server,235, > 2009-01-04 20:28:19.190132500 {child_error, > 2009-01-04 20:28:19.190134500 {timeout, > 2009-01-04 20:28:19.190136500 {gen_server,call, > 2009-01-04 20:28:19.190138500 [couch_server, > 2009-01-04 20:28:19.190140500 {create,<<"mypl_audit_replication">>, > 2009-01-04 20:28:19.190143500 [{user_ctx,{user_ctx,null,[<<"_admin">>]}}]}]}}}} > 2009-01-04 20:28:19.369207500 [info] [<0.22657.191>] 172.30.20.74 - - 'PUT' /mypl_audit_replication/ 409 > 2009-01-04 20:30:47.447703500 [info] [<0.22662.191>] 127.0.0.1 - - 'GET' /hulog_events/ 200 > 2009-01-04 20:35:59.219916500 [info] [<0.22663.191>] 127.0.0.1 - - 'GET' /hulog_events/ 200 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.