Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 85461 invoked from network); 18 Mar 2011 17:54:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Mar 2011 17:54:43 -0000 Received: (qmail 38412 invoked by uid 500); 18 Mar 2011 17:54:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 38236 invoked by uid 500); 18 Mar 2011 17:54:43 -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 38228 invoked by uid 99); 18 Mar 2011 17:54:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 17:54:43 +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 (nike.apache.org: domain of fdmanana@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-ww0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 17:54:36 +0000 Received: by wwk4 with SMTP id 4so1537583wwk.5 for ; Fri, 18 Mar 2011 10:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fFgh0eVuj753JCaLCJchiQjZNWJNQS7g6JeW+d78DCA=; b=Gv46w0QyY+a6Rzdw2MZ7anuwAKjszWeEjWxUcCha32FEVPxWdsE5Tc2x2PfyEIahWq N16giatI6R+hCH8vPIgvZQaVL+ekhfm6tyexKigS4zLbNhpbcmzOelT2m2qRVED1SQsn unHALuDBTE6jHRpcjyjunfsUyGx87xt9wNbJs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=v9p9FKNDx6wywZDTGoh2ocJmfY9NbaDkqP+mxQ4Kux3qQ+zEQoM9qQkLVV1+V+yojV HNGk1Ed3CNKkY+YoWQdYV1Bk/Y27F2W9xq6MoGP9fjmpQXCBcd37R5BxuXkYoKwbZDy9 2kxp+M4CFRpN7Nzn6VisEOMAFlp7iGISNuQD0= MIME-Version: 1.0 Received: by 10.216.25.202 with SMTP id z52mr2662546wez.14.1300470856606; Fri, 18 Mar 2011 10:54:16 -0700 (PDT) Sender: fdmanana@gmail.com Received: by 10.216.241.10 with HTTP; Fri, 18 Mar 2011 10:54:16 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Mar 2011 17:54:16 +0000 X-Google-Sender-Auth: avBiYPWBv1wpSWbPukMC0Q6zcEY Message-ID: Subject: Re: CouchDB exceptions From: Filipe David Manana To: dev@couchdb.apache.org Cc: kowsik Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Ah, I think the issue is while we are folding the by sequence btree, we are not checking if the database file changed. So if compaction finishes before finishing the btree fold, we reach that error. I can't see right now any other situation, involving _changes, that might cause that issue. On Fri, Mar 18, 2011 at 5:40 PM, kowsik wrote: > Been seeing this on our production CouchDB's (1.0.2) sporadically. We > are using the _changes feed, background view indexing and automatic > compaction. > > Uncaught error in HTTP request: {exit, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {noproc, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{gen_server,call, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [<0.1478.0>, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{pread_iolist,290916}, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0infinity]}}} > > =C2=A0Stacktrace: [{gen_server,call,3}, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {couch_file,pread_iolist,2}, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {couch_file,pread_binary,2}, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {couch_file,pread_term,2}, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {couch_db,make_doc,5}, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {couch_db,open_doc_int,3}, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {couch_db,open_doc,3}, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {couch_changes,'-make_filter_fu= n/4-lc$^4/1-3-',2}] > > Not reproducible yet, but it seems compacting while there are active > _changes listeners seems to trigger this. After the exception the > _changes listeners are disconnected which then connect back and > everything goes back to normal. beam itself holds up, though last > night it terminated with no logs, nothing. Just poof. Any ideas? > > Thanks, > > K. > --- > http://blitz.io > http://twitter.com/pcapr > --=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."