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 0A15C7712 for ; Wed, 28 Sep 2011 03:54:10 +0000 (UTC) Received: (qmail 85213 invoked by uid 500); 28 Sep 2011 03:54:09 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 85096 invoked by uid 500); 28 Sep 2011 03:54:08 -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 85059 invoked by uid 99); 28 Sep 2011 03:54:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 03:54:07 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Wed, 28 Sep 2011 03:54:05 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 779A628C56E for ; Wed, 28 Sep 2011 03:53:45 +0000 (UTC) Date: Wed, 28 Sep 2011 03:53:45 +0000 (UTC) From: "Paul Joseph Davis (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1744061988.2258.1317182025491.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1521075266.2305.1314598597788.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1265) Replication can introduce duplicates into the seq_btree. 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-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116108#comment-13116108 ] Paul Joseph Davis commented on COUCHDB-1265: -------------------------------------------- Really fixed in: trunk r1176701 1.2.x r1176703 1.1.x r1176704 As a follow up to COUCHDB-1265 I was missing the fact that after the insertion of a new update_seq into an internal node it is quite possible that a compaction runs before the doc is updated again. This is important because compaction removes information of the largest update seq from the tree itself. The fix is simple to include the update_seq from the #full_doc_info{} record when calculating #doc_info.high_seq. The way to think of this is that it's the maximum value from all known values for the update sequence which can be defined as all values known in the tree or in the full_doc_info record. > Replication can introduce duplicates into the seq_btree. > -------------------------------------------------------- > > Key: COUCHDB-1265 > URL: https://issues.apache.org/jira/browse/COUCHDB-1265 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Reporter: Paul Joseph Davis > Assignee: Paul Joseph Davis > Fix For: 1.1.1, 1.2 > > Attachments: COUCHDB-1265.patch, replication-frenzy.py > > > Full description, test, and patch to follow shortly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira