couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (Commented) (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1265) Replication can introduce duplicates into the seq_btree.
Date Wed, 28 Sep 2011 03:53:45 GMT


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:
>             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,
> 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:!default.jspa
For more information on JIRA, see:


View raw message