From couchdb-user-return-751-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Mon Jul 14 14:59:36 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 90990 invoked from network); 14 Jul 2008 14:59:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 14:59:35 -0000 Received: (qmail 37086 invoked by uid 500); 14 Jul 2008 14:59:36 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 36784 invoked by uid 500); 14 Jul 2008 14:59:34 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 36765 invoked by uid 99); 14 Jul 2008 14:59:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 07:59:34 -0700 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bosko.milekic@gmail.com designates 64.233.184.225 as permitted sender) Received: from [64.233.184.225] (HELO wr-out-0506.google.com) (64.233.184.225) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 14:58:41 +0000 Received: by wr-out-0506.google.com with SMTP id c53so3304008wra.20 for ; Mon, 14 Jul 2008 07:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JFkJkEmLNbN6bsljlnQ/nOxmhB9XlBe0a9udFj0jhrc=; b=g45AVYqT2S3ziaOL3YaAEmzbjbbu6dNFuv7JuPgPasZCuTXZiQzlPmterUwIan3T4C RWDb2m3623AOQKzWfww51Sxeyyibgrp7nvbO37fgfb0c9XEIYYifDKfLRY42pmYQbBoR ECLone9XgRGfd61DQg/OuXfORyEohmi/5HrT4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bbqGObWq6lcLUbt+1e8Suha/uSlYutEZAi4YLaCmUVWn4ciazU1UdbphRekczAAp+C eyYlpmqdPEQEwnOveg39CjpcaOwQqat9NMHeVpQDPlF4W7cnb8qkdLztOPTXpPy/0xce 6qSutNuUR6Vk0hZcfzz1DtcKUPt+Xi8IVHP4g= Received: by 10.90.66.5 with SMTP id o5mr14735378aga.89.1216047543719; Mon, 14 Jul 2008 07:59:03 -0700 (PDT) Received: by 10.90.96.12 with HTTP; Mon, 14 Jul 2008 07:59:03 -0700 (PDT) Message-ID: Date: Mon, 14 Jul 2008 10:59:03 -0400 From: "Bosko Milekic" To: "Jan Lehnardt" Subject: Re: couchdb test suite failing randomly? Cc: couchdb-user@incubator.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jul 14, 2008 at 10:25 AM, Jan Lehnardt wrote: > Hello Bsoko, > > On Jul 14, 2008, at 15:57, Bosko Milekic wrote: >> >> # Exception raised: >> {"error":"EXIT","reason":"{{badmatch,{error,econnrefused}},\n >> [{couch_rep,do_http_request,3},\n {couch_rep,open_doc,3},\n >> {couch_rep,replicate,3},\n {couch_httpd,handle_replicate_request,2},\n >> {couch_httpd,handle_request,2},\n {mochiweb_http,headers,4},\n >> {proc_lib,init_p,5}]}"} >> >> (this running the suite from Firefox2, seems to be easily reproducable) >> >> When running the test suite from Safari, I get seemingly much more >> random failures. For instance, this last run I have: >> >> multiple_rows failing with: >> Exception raised: {"error":"conflict","reason":"Update >> >> conflict","line":54,"sourceURL":"http://localhost:5984/_utils/script/couch.js?0.8.0a"} >> >> design_docs failing with: >> Exception raised: {"error":"conflict","reason":"Update >> >> conflict","line":77,"sourceURL":"http://localhost:5984/_utils/script/couch.js?0.8.0a"} > > This seems to be a mochiweb concurrency issue. we are currently looking > into this. These are really quite strange, if you can find out more about > them, we'd be glad for every hint. > > Firefox usually doesn't show these errors because it looks like it is not > sending requests as fast as Safari. > > >> replication failing with: >> Exception raised: >> {"error":"EXIT","reason":"{{badmatch,{error,econnrefused}},\n >> [{couch_rep,do_http_request,3},\n {couch_rep,open_doc,3},\n >> {couch_rep,replicate,3},\n >> {couch_httpd,handle_replicate_request,2},\n >> {couch_httpd,handle_request,2},\n {mochiweb_http,headers,4},\n >> >> {proc_lib,init_p,5}]}","line":200,"sourceURL":"http://localhost:5984/_utils/script/couch.js?0.8.0a"} > > This is just as Johan says: localhost resolves to :::1 first on OS X and > since CouchDB only listens on IPv4 addresses, the connection fails. > Try accessing CouchDB through 127.0.0.1 or disable IPv6 to get that > working. I'd like to believe that, so I am now connecting to 127.0.0.1, but now with Firefox I get even more seemingly random failures. Last run: content_negotiation fails with: # Assertion failed: xhr.getResponseHeader("Content-Type") == "application/json" replication fails with: # Exception raised: {"message":"docA is null","fileName":"http://127.0.0.1:5984/_utils/script/couch_tests.js","lineNumber":1224,"stack":"((void 0))@http://127.0.0.1:5984/_utils/script/couch_tests.js:1224\nrun(0)@http://127.0.0.1:5984/_utils/script/couch_tests.js:1228\n","name":"TypeError"} compact fails with: 1. Assertion failed: deletesize > originalsize 2. Assertion failed: compactedsize < deletesize next run in Firefox everything passes. Note that the problems seem to be timing related, which is what makes this scary. Tweaking with Firebug settings (e.g., enabling/disabling network logging in Firebug) seems to reveal some of these. Cheers, -- Bosko Milekic http://www.tumbl.es/