From user-return-16862-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Jun 29 11:02:49 2011 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 CA95E442D for ; Wed, 29 Jun 2011 11:02:49 +0000 (UTC) Received: (qmail 43451 invoked by uid 500); 29 Jun 2011 11:02:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 42982 invoked by uid 500); 29 Jun 2011 11:02:41 -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 42968 invoked by uid 99); 29 Jun 2011 11:02:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2011 11:02:40 +0000 X-ASF-Spam-Status: No, hits=4.9 required=5.0 tests=FREEMAIL_FROM,HTML_FONT_FACE_BAD,HTML_MESSAGE,MANY_SPAN_IN_TEXT,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.91.84] (HELO nm14.bullet.mail.sp2.yahoo.com) (98.139.91.84) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 29 Jun 2011 11:02:31 +0000 Received: from [98.139.91.69] by nm14.bullet.mail.sp2.yahoo.com with NNFMP; 29 Jun 2011 11:02:10 -0000 Received: from [98.139.91.30] by tm9.bullet.mail.sp2.yahoo.com with NNFMP; 29 Jun 2011 11:02:10 -0000 Received: from [127.0.0.1] by omp1030.mail.sp2.yahoo.com with NNFMP; 29 Jun 2011 11:02:10 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 825246.20528.bm@omp1030.mail.sp2.yahoo.com Received: (qmail 64274 invoked by uid 60001); 29 Jun 2011 11:02:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1309345330; bh=J4bMt2ALBRH2s1xZDMGNSbsiz7Bf528rq2/ChShjQo0=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=idkmJvGV2Zp5+SeWBxlUEf0SQPiMFdBseSb53JMJp1cMDprVYf1FL6/dJwMND+U3nzyX7klMz5zb16KCRabv0o4/JKw86yN/2gKq22su6/Fj97GNlr13mEPJmS/zTWfp9DDh+ALuf0LcG5HbodUsEm/8sM6CKNN8iljxy2phZY4= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=oHgtX2d7JukhvBuXjclPCAxmS0LlyjdPsoSdvvtLSCrrCUSDHp4XwZmAC8v4RLG7tlOyDXE3j1kxFPIXcy5EomnPMfg9wdGSLvd5Su9Yz7mp1HfCsTd3QHp+TPPHYqHmb9p7koQZcuOsdIYV+wO4sBBxMSRDP2sxLWO8TtTQybw=; X-YMail-OSG: 1pShpnAVM1kGJqM4K6TH1D0V2bFnu4Y55pmNfpFXWCMzK_a RVc8zx0oHbm2tXQoxr.gvyn9nV2HLm2Gp5NyFnnvvR_ndb48ujvoI6JOtrPy NeVllqe0hyz1i1VlGiwG1CzqYpe53k3plAAvZ4NygxsX62QRtIsQWMXMqpvU tzCWYcjzkK0R_9QLeabNAMMhFmXeadzkWRkGn569Oz1JOL3YR2G4hUHcsDdK PBZS6DjQibMU1uFWOoxcAc.SY6bhaumqjWNRv6ms4K4ycXmcqQoDOP3Im.G2 bffrrtwo64nGRxhQTeWX5XeaKvHbPfObqlV4GUaSALaj1oQvapdQKGCVrjL8 JEE.bUzhUhhJLMyL8eaVjBE.ELGiAVOBE7dCScLJhucSDPcdCCBcsEPKVszD qxTnagpQFRB_4nnY9JFj12HDCvqWqdLimobBNC0m5gNTYLet7qYLmHQTrVj9 VA6XmoN7vIMiMIoH9enjcAeM- Received: from [85.15.47.2] by web31803.mail.mud.yahoo.com via HTTP; Wed, 29 Jun 2011 04:02:10 PDT X-Mailer: YahooMailWebService/0.8.112.310352 Message-ID: <1309345330.62114.YahooMailNeo@web31803.mail.mud.yahoo.com> Date: Wed, 29 Jun 2011 04:02:10 -0700 (PDT) From: Behrad Zari Reply-To: Behrad Zari Subject: View Returns Inconsistent Data on CouchDB 1.1 To: "user@couchdb.apache.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-50681875-1309345330=:62114" --0-50681875-1309345330=:62114 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Dear Couchees,=0AConsider a view on a CouchDB 1.1 private DB which emits: (= doc._id, 1 )=0A1) call the view with reduce=3Dfalse&include_docs=3Dtrue by= your browser!=0A2) update a document (with futon)=0A3) recall that view=A0= =0AYou will see a cached-inconsistent document included in view results! (a= ccording to _rev and doc data) with a 304 response!=0A4) recall that view w= ith CTRL+F5 (forces to 'no-cache' and cleaning if-Not-Match)=0ANow couchdb = returns 200 with correct included document version!=0A=0AThe above scenario= was not happening in previous CouchDB version and at step 3 we received la= test document versions!=A0=0AAlso this happens when updated document DOES N= OT reflect view (key,value) pairs, but when we update an attribute that is = emited by a view, Couch returns consistent results. (logically since view h= ash is changed)=0AThis seems an to be an issue with couchdb's Cache Control= .=0A=0Afor more details=A0Request/Response headers are included down below:= =0A=0AView GET Request @step 3:=0A=0A=0ARequest Headers=0A-----------------= -----=0AHost192.168.128.11:5984=0AUser-AgentMozilla/5.0 (X11; U; Linux i686= ; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10= =0AAccepttext/html,application/xhtml+xml,application/xml;q=3D0.9,*/*;q=3D0.= 8=0AAccept-Languageen-us,en;q=3D0.5=0AAccept-Encodinggzip,deflate=0AAccept-= CharsetISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7=0AKeep-Alive115=0AConnectionkeep-= alive=0ACookiesession_id=3D439173cbd2f955017d8282102a9388a0b92a29c2; AuthSe= ssion=3DYWRtaW46NEUwQUVCNDE6YGCaYBacZ6PweA1xjFoK1U6FwrI=0AIf-None-Match"AI1= 7SB7U17NIG0SL4BRNABYZB"=0ACache-Controlmax-age=3D0=0A=0A304=0A-----=0AServe= rCouchDB/1.1.0 (Erlang OTP/R13B03)=0AEtag"AI17SB7U17NIG0SL4BRNABYZB"=0ADate= Wed, 29 Jun 2011 09:07:46 GMT=0AContent-Typetext/plain;charset=3Dutf-8=0ACa= che-Controlmust-revalidate=0A=0A=0A=0AAND=A0View GET Request @step 4:=0A=0A= Request Headers=0A----------------------=0AHost192.168.128.11:5984=0AUser-A= gentMozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubu= ntu/10.10 (maverick) Firefox/3.6.10=0AAccepttext/html,application/xhtml+xml= ,application/xml;q=3D0.9,*/*;q=3D0.8=0AAccept-Languageen-us,en;q=3D0.5=0AAc= cept-Encodinggzip,deflate=0AAccept-CharsetISO-8859-1,utf-8;q=3D0.7,*;q=3D0.= 7=0AKeep-Alive115=0AConnectionkeep-alive=0ACookiesession_id=3D439173cbd2f95= 5017d8282102a9388a0b92a29c2; AuthSession=3DYWRtaW46NEUwQUVCNDE6YGCaYBacZ6Pw= eA1xjFoK1U6FwrI=0APragmano-cache=0ACache-Controlno-cache=0A=0A200=0A-----= =0ATransfer-Encodingchunked=0AServerCouchDB/1.1.0 (Erlang OTP/R13B03)=0AEta= g"AI17SB7U17NIG0SL4BRNABYZB"=0ADateWed, 29 Jun 2011 09:09:52 GMT=0AContent-= Typetext/plain;charset=3Dutf-8=0ACache-Controlmust-revalidate=0A=A0=0A=0A= =0A--Behrad --0-50681875-1309345330=:62114--