Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1365

Fix merging of document with attachment stubs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.2, 1.2.1
    • Database Core, Replication
    • None

    Description

      This issue was found by Marty Schoch and is reproducible the following attached script.

      The commit message in the patch explains the issue:

      "During replicated updates, merging of documents with
      attachment stubs will fail if, after merging the received
      document's revision tree with the current on disk revision
      tree, produces a revision tree which doesn't contain the revision
      that immediately precedes the received document's revision.

      This happens when the received document doesn't contain in its
      revision history any of the revisions in the revision tree
      of the currently on disk document. This is possible when the
      document had a number of updates higher than the value of revs
      limit defined for the source database."

      Attachments

        1. 0001-Fix-merging-of-documents-with-attachment-stubs.patch
          12 kB
          Filipe David Borba Manana
        2. 0001-Fix-merging-of-documents-with-attachment-stubs.patch
          12 kB
          Filipe David Borba Manana
        3. reproduce-CBMA-22.sh
          2 kB
          Filipe David Borba Manana

        Activity

          People

            fdmanana Filipe David Borba Manana
            fdmanana Filipe David Borba Manana
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: