Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 27493 invoked from network); 22 Jul 2008 20:23:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jul 2008 20:23:17 -0000 Received: (qmail 85463 invoked by uid 500); 22 Jul 2008 20:23:17 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 85239 invoked by uid 500); 22 Jul 2008 20:23:16 -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 85228 invoked by uid 99); 22 Jul 2008 20:23:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 13:23:16 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 72.14.220.158 as permitted sender) Received: from [72.14.220.158] (HELO fg-out-1718.google.com) (72.14.220.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 20:22:19 +0000 Received: by fg-out-1718.google.com with SMTP id l26so950254fgb.26 for ; Tue, 22 Jul 2008 13:22:40 -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:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=f5vtNzV/pnxWZcpCUEbHeKN96vSBczKiBXBymWnNa3o=; b=oOEGOctmvoeTDibSzXMWFDetuvYyRBR5pOTtekbOqBJwb15bZTVcsD44G+nWyO38nH nBmi0ph2bgfkROGj65Zw10rVnT9+XyPQ54p9fd97MLgZ2ixuD2EP1thaaFu4QmR8tYkq 4H3C8ExKObF5FLOxonRbBlmEo4TPgNMkm81ws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=trY46QyWYKnC0N3OYy3Z8gWWNC5qdnt10HaFBmzIWrkFGpZEsCU6xaUymMz/YGCGHy +Uo1FLpfaiJ/EGJ68+6F8PCwQthz7AE2OitbpHxgvPqcZMwq4XCIjOWH9+5irNIX65Dz YW3sTKIVtsjZ7/NWMtz1e4+QmlheBoCdiIRWM= Received: by 10.125.81.5 with SMTP id i5mr366452mkl.62.1216758159808; Tue, 22 Jul 2008 13:22:39 -0700 (PDT) Received: by 10.125.149.10 with HTTP; Tue, 22 Jul 2008 13:22:39 -0700 (PDT) Message-ID: Date: Tue, 22 Jul 2008 16:22:39 -0400 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: doc_count set to zero even though documents remain In-Reply-To: <5aea26870807220530i46c96900kea071793464656b7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5aea26870807211532j5442ab6fv666095720d49b0db@mail.gmail.com> <5aea26870807220530i46c96900kea071793464656b7@mail.gmail.com> X-Google-Sender-Auth: 35478375d8827ca5 X-Virus-Checked: Checked by ClamAV on apache.org I've seen the same thing -- the easiest way I've had to replicate it is to rename the database.couch file, after having compacted, and then compact again. I thought that was a weird enough case that it didn't matter, but it looks like Peter has been able to cause it without such odd usage. On Tue, Jul 22, 2008 at 8:30 AM, Peter Eddy wrote: > Thanks, > > It's definitely not a browser cache issue, I first noticed it testing > my Lisp -> CouchDb library, I then verified the condition using a > browser that had never seen the CouchDb server machine before. > > All my tests are automated so I'll just re-run them and see if I can > reproduce the issue. > > - Peter > > On Mon, Jul 21, 2008 at 9:23 PM, Damien Katz wrote: >> I've not heard of other reports of this. To make sure it's not a browser >> cache issue, check the count from another browser by pointing the browser at >> the db url and see what is returned. >> >> -Damien >> >> On Jul 21, 2008, at 6:32 PM, Peter Eddy wrote: >> >>> Hi, >>> >>> I ran into this a few days ago and haven't had a chance to look into >>> it, but I thought I'd mention it any way. >>> >>> I was doing some performance testing on some new hardware, I created 1 >>> million test documents (exactly) and then ran various multi-threaded >>> tests to time document fetch time. I then compacted my database and >>> shutdown CouchDb well after compaction had finished. >>> >>> When I restarted CouchDb I found that even though the 1 million >>> documents are still there, the doc_count value is zero. I can still >>> fetch the documents without any problem. >>> >>> I'm using CouchDb 0.8-incubating and Erlang R12B-3 on a 4 core AMD64 >>> Linux box with kernel 2.6.24 SMP. I'm not using replication. I >>> encountered no errors while loading the database with the test >>> documents or while running the tests. >>> >>> thanks, >>> Peter >> >> > -- Chris Anderson http://jchris.mfdz.com