Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 79952 invoked from network); 13 Oct 2010 22:01:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 22:01:11 -0000 Received: (qmail 80114 invoked by uid 500); 13 Oct 2010 22:01:10 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 80044 invoked by uid 500); 13 Oct 2010 22:01:10 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 80036 invoked by uid 99); 13 Oct 2010 22:01:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 22:01:10 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.83.52] (HELO mail-gw0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 22:01:04 +0000 Received: by gwj22 with SMTP id 22so1148636gwj.11 for ; Wed, 13 Oct 2010 15:00:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.97.74 with SMTP id m10mr4297306icn.341.1287007242576; Wed, 13 Oct 2010 15:00:42 -0700 (PDT) Received: by 10.231.160.66 with HTTP; Wed, 13 Oct 2010 15:00:42 -0700 (PDT) In-Reply-To: References: <40457C9C-75FC-41C2-A09F-BDA59BC23B01@me.com> Date: Wed, 13 Oct 2010 23:00:42 +0100 Message-ID: Subject: Re: HTTP Error 303 causes erlang stack trace From: John Logsdon To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf303639c184621d049286b98c X-Virus-Checked: Checked by ClamAV on apache.org --20cf303639c184621d049286b98c Content-Type: text/plain; charset=ISO-8859-1 Hi David Many thanks for patching this. TBH I have no idea where the 303 came from so I will have to simulate it to prove the patch. My question though is: In an unexpected situation e.g. Unknown Error code. What should CouchDB do? I kind of expected that it would see that as a transient problem and try again later. The reason I ask is that I love this technology but I'm selling it into a bunch of guys who have breathed relational DB's for 20 yrs and I just want it to be successful 'cause I know its the right solution for the problem we're trying to solve. Unfortunately new technologies get less slack than old ones with this kind of group! Thanks for your speedy reply. Regards John On 13 October 2010 21:55, Filipe David Manana wrote: > John, > > I created a ticket, https://issues.apache.org/jira/browse/COUCHDB-918 > and attached there a patch. > > Can you test the patch? It was made against trunk, but should apply > cleanly against branch 1.0.x as well. > I'll commit it afterwards. > > On Wed, Oct 13, 2010 at 8:57 PM, Filipe David Manana > wrote: > > Hi John, > > > > Do you have some proxy in the middle that might be returning the 303 > > response? Perhaps in the meanwhile you can reconfigure your proxy. > > CouchDB itself doesn't send 303 errors anywhere. The crash is because > > it's not dealing with 303 (only 301 and 302). > > > > In the meanwhile, do you want to open a Jira ticket? > > I'll gladly do a patch and commit it. > > > > On Wed, Oct 13, 2010 at 2:42 PM, John Logsdon > wrote: > >> Hello again > >> > >> Can anyone comment on this replication error I posted a few days ago? If > it appears to be a genuine bug then I can raise it through the project but I > just wanted some feedback before I did that. > >> > >> Regards > >> > >> John > >> > >> On 11 Oct 2010, at 17:47, John Logsdon wrote: > >> > >>> Hi > >>> > >>> I kicked off a replication to couchone.com from my local couchdb by > pushing from the local db. > >>> > >>> It was for a 2M doc database and all was going well up until 678K > entries but then I had a connection issue and well it's all gone horribly > wrong. > >>> > >>> Anyway basically the replication has gone from "Replicator" and I cant > restart it. The erlang stack trace in couchdb.log looks like this: > >>> > >>> ** Reason for termination == > >>> ** {http_request_failed,<<"unhandled response code 303">>} > >>> > >>> > >>> [Sun, 10 Oct 2010 17:29:52 GMT] [error] [<0.17737.2>] > {error_report,<0.30.0>, > >>> {<0.17737.2>,crash_report, > >>> [[{initial_call,{couch_rep_reader,init,['Argument__1']}}, > >>> {pid,<0.17737.2>}, > >>> {registered_name,[]}, > >>> {error_info, > >>> {exit, > >>> {http_request_failed,<<"unhandled response code 303">>}, > >>> > [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}}, > >>> {ancestors, > >>> > [<0.17728.2>,couch_rep_sup,couch_primary_services,couch_server_sup, > >>> <0.31.0>]}, > >>> {messages, > >>> [{'EXIT',<0.17738.2>, > >>> {{http_request_failed,<<"unhandled response code > 303">>}, > >>> {gen_server,call, > >>> [<0.17735.2>,next_missing_revs,infinity]}}}]}, > >>> {links,[]}, > >>> {dictionary,[]}, > >>> {trap_exit,true}, > >>> {status,running}, > >>> > >>> > >>> Have I bumped into a bug here or....???? > >>> > >>> > >>> Regards > >>> > >>> John > >> > >> > > > > > > > > -- > > Filipe David Manana, > > fdmanana@gmail.com, fdmanana@apache.org > > > > "Reasonable men adapt themselves to the world. > > Unreasonable men adapt the world to themselves. > > That's why all progress depends on unreasonable men." > > > > > > -- > Filipe David Manana, > fdmanana@gmail.com, fdmanana@apache.org > > "Reasonable men adapt themselves to the world. > Unreasonable men adapt the world to themselves. > That's why all progress depends on unreasonable men." > -- John Logsdon CEO NetDev Limited +44 1273 773661 +44 7899 811245 http://www.netdev.co.uk Registered in England and Wales Company Number 04741258 --20cf303639c184621d049286b98c--