Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20B304FF6 for ; Tue, 5 Jul 2011 09:27:10 +0000 (UTC) Received: (qmail 41989 invoked by uid 500); 5 Jul 2011 09:27:07 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41640 invoked by uid 500); 5 Jul 2011 09:26:54 -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 41631 invoked by uid 99); 5 Jul 2011 09:26:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 09:26:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fdmanana@gmail.com designates 74.125.83.180 as permitted sender) Received: from [74.125.83.180] (HELO mail-pv0-f180.google.com) (74.125.83.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 09:26:43 +0000 Received: by pvc21 with SMTP id 21so8514434pvc.11 for ; Tue, 05 Jul 2011 02:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=4dUa0PMcINjatnV2p7B70ZMXvf2dQFv4srZGmql4kxE=; b=UDsIrGFrrm7IxEo8UmKGSop4EW0YpOotRbBO7QSIKHZmmhHeSGtdd/XAUy6Z9S8faS OJ++gFSwhddiFnQmYip9eyTDNXD7rUfD0f4MrM0aVhQu6awg7w71Aa4VmZf/Y1OGXd1K /PpcFFniDhPfuGbQvg5LLa/JfpE87nuFJz+HA= MIME-Version: 1.0 Received: by 10.68.22.198 with SMTP id g6mr7962829pbf.218.1309857983145; Tue, 05 Jul 2011 02:26:23 -0700 (PDT) Sender: fdmanana@gmail.com Received: by 10.68.51.99 with HTTP; Tue, 5 Jul 2011 02:26:23 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 Jul 2011 10:26:23 +0100 X-Google-Sender-Auth: VJ1ukpqvV8F8DPNfkrUUwvVV-U0 Message-ID: Subject: Re: changes_timeout From: Filipe David Manana To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think the most right thing here would be to make the connection timeout configurable (globally or per replication), exactly like the in new replicator implementation (trunk, upcoming 1.2.0 release). However just replacing that 10 seconds timeout with 30 seconds (like everywhere else in the code) should do it for most cases. On Tue, Jul 5, 2011 at 8:40 AM, Dave Cottlehuber wrote: > On 5 July 2011 18:53, Benoit DECHERF wrote: >> So ? >> Should I enter a bug for this ? >> >> Benoit >> >> 2011/7/1 Ramkrishna Kulkarni >> >>> I have this same issue when I start replication through a Couchapp. If = I >>> start it through command line curl, it takes few minutes but works. I f= aced >>> this problem with a DB containing around 30K documents and the filter >>> selected 500-1000 documents from it. >>> >>> Ram >>> >>> On Thu, Jun 30, 2011 at 5:07 PM, Benoit DECHERF >>> wrote: >>> >>> > Hi, >>> > >>> > I'm playing with the filter replication. >>> > So my filter is: >>> > function(doc, req) { if (doc.type && doc.type =3D=3D 'user' && doc.us= erId =3D=3D >>> > req.query.userId) { return true; } else { return false; } } >>> > >>> > This is to replicate all document from a given user. (This is not >>> > a continuous replication) >>> > The replication fails because of a changes_timeout error. (same error >>> with >>> > 1.1.0 and 1.0.2) >>> > I check the code, and it seems that the pb comes from: >>> > src/couchdb/couch_rep_changes_feed.erl >>> > All timeout are hardcoded, and one of them is 10s. >>> > the request filter took between 10 and 25s. >>> > >>> > Am I doing something wrong ? Or is this a bug ? >>> > >>> > Thanks, >>> > Benoit >>> > >>> >> > > Hi Benoit, > > yes please. I will take a look & see if I can provide a fix for this. > > A+ > Dave > --=20 Filipe David Manana, fdmanana@gmail.com, fdmanana@apache.org "Reasonable men adapt themselves to the world. =C2=A0Unreasonable men adapt the world to themselves. =C2=A0That's why all progress depends on unreasonable men."