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 300137E20 for ; Tue, 15 Nov 2011 13:33:00 +0000 (UTC) Received: (qmail 36628 invoked by uid 500); 15 Nov 2011 13:32:58 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 36598 invoked by uid 500); 15 Nov 2011 13:32:58 -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 36590 invoked by uid 99); 15 Nov 2011 13:32:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 13:32:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcello.nuccio@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 13:32:50 +0000 Received: by vcbfo1 with SMTP id fo1so8851498vcb.11 for ; Tue, 15 Nov 2011 05:32:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4Lyv1+kvDd1YJioAqcuXP4PtJasK0Scgeknwbgl9iBA=; b=xy5sWK/d+yfdiPazWD/b+0uA8yxulE+SPruIfBVbljIy4pev3Fr5EsdBauHY2T/bfC 9iG31PNWZlQ4LpAwfZmoNf3ymNt0Lyi287jyF8HePK/+1f+OVjO1u+GBmdSS6Il6fjWA D15GyeRqULanHdUJ411lIR2RYqDJS+PVPzrhw= MIME-Version: 1.0 Received: by 10.224.17.209 with SMTP id t17mr17539473qaa.13.1321363949822; Tue, 15 Nov 2011 05:32:29 -0800 (PST) Received: by 10.229.249.7 with HTTP; Tue, 15 Nov 2011 05:32:29 -0800 (PST) In-Reply-To: References: Date: Tue, 15 Nov 2011 14:32:29 +0100 Message-ID: Subject: Re: View row with doc==null From: Marcello Nuccio To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2011/11/15 Marcello Nuccio : > I've done some more testing: > > 1. I've restored the original db and view files (before compaction and cl= eanup) > 2. I've made a clone of the db and view with new name > 3. Verified that everything works as expected, i.e. both db return > identical results and all files are identical (done using curl and > cmp). > > Here the tests: > > 1. Compacting the clone the row with doc=3D=3Dnull disappears. > 2. Compacting the master the row is still here. Ops sorry, I did those two tests with Futon and forcing reload did not show the row in test 1. After clearing the cache completely, the row with doc=3D=3Dnull is here. I verified with curl and both dbs return the row with doc=3D=3Dnull. The only way I have found to delete it, is to delete the view file. Marcello > 3. Comparing with cmp *.couch and *.view, they are identical. > 4. Restarting couchdb does not help. > > What am I missing? > > Marcello > > 2011/11/15 Robert Newson : >> That does sound wrong but not sure what steps to suggest next. >> >> B. >> >> On 15 November 2011 12:22, Marcello Nuccio w= rote: >>> No. >>> >>> Marcello >>> >>> 2011/11/15 Robert Newson : >>>> Did you query with stale=3Dok? >>>> >>>> B. >>>> >>>> On 15 November 2011 11:10, Marcello Nuccio = wrote: >>>>> Don't know how, but I have a view that returns the following row: >>>>> >>>>> =C2=A0 =C2=A0{"id":"510427_2011_1","key":["510427",2011,1],"value":1,= "doc":null} >>>>> >>>>> i.e. it has doc=3D=3Dnull when queried with include_docs=3Dtrue. The = doc >>>>> with the given _id is deleted. The database is compacted. The views >>>>> are compacted and cleaned (done via Futon). CouchDB is version 1.1.1 >>>>> built with build-couchdb on Ubuntu 11.10. >>>>> >>>>> Is this normal behaviour? >>>>> >>>>> Thanks, >>>>> =C2=A0Marcello >>>>> >>>> >>> >> >