Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D667C42EC for ; Tue, 5 Jul 2011 22:10:39 +0000 (UTC) Received: (qmail 76343 invoked by uid 500); 5 Jul 2011 22:10:39 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 76291 invoked by uid 500); 5 Jul 2011 22:10:38 -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 76278 invoked by uid 99); 5 Jul 2011 22:10:38 -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 22:10:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 22:10:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A829744662 for ; Tue, 5 Jul 2011 22:10:16 +0000 (UTC) Date: Tue, 5 Jul 2011 22:10:16 +0000 (UTC) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Message-ID: <191367064.2008.1309903816685.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (COUCHDB-736) stale-ok view queries can return inconsistent partial results MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Randall Leeds resolved COUCHDB-736. ----------------------------------- Resolution: Won't Fix It sounds like you're trying to confer some notion of "stability" on the database-at-the-time-of-first-indexing-request, and asking that *all* those documents be indexed before any result can be returned. This idea seems bogus to me, because as future updates arrive the stale index can always again become a partial index. If you need to be sure the index reflects the state of the db you should not be using stale=ok :) > stale-ok view queries can return inconsistent partial results > ------------------------------------------------------------- > > Key: COUCHDB-736 > URL: https://issues.apache.org/jira/browse/COUCHDB-736 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.11 > Reporter: Chris Anderson > > since r796805 requests to views with the stale=ok option have returned partially computed index results. This changed the semantics of views. This ticket is about maintaining the old semantics. > This should be changed so stale=ok only returns what would be returned by a normal view request. stale=partial would be an OK name for an option to provide the current behavior. > The best way to fix this would be to store the NewGroup sent on the partial_update cast in #group_state.partial_group instead of #group_state.group > This will also eliminate the (rare) changes of serving inconsistent results with a regular view query. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira