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

Document returned by id, but cannot be found by rev

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0.1, 1.0.2
    • 1.0.3, 1.1, 1.2
    • Database Core
    • None
    • Committers Level (Medium to Hard)

    Description

      Somehow, our cluster has developed the following problem on a handful of documents. Will post reproduction steps if we find them. All properties have been redacted. All the documents this affects also have attachments, if that is significant. Once a document is in this situation, it causes conflict detection, replication and include_docs to behave incorrectly or outright fail.

      GET /database/4cdee83a118ea1cf3050b1d006144d46 returns
      {

      "_id": "4cdee83a118ea1cf3050b1d006144d46",
      "_rev": "10-df4bf65a6104ea240f100c30d3cb245d",
      "foo": "bar"
      }

      GET /database/4cdee83a118ea1cf3050b1d006144d46?open_revs=all returns
      [
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "10-df4bf65a6104ea240f100c30d3cb245d", "foo": "bar" }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "8-eea5e36daee12acd79a127abf36f7720", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "9-2cead1e4c813a4f0d10a9bc4aa28bfda", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "7-c3b44f004660caa496804409089b53d9", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "6-52e978041bb324d19e01a2ac5a243702", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "5-761bf28c6989f0fde41bdd5732c33159", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "4-abb005cf4b2d2dd12880a33af1e7066e", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "3-233e4624e620ec1c8b66f21a051832f8", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "10-55f0cdf9dd95ed230b733a2c826c842c", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "11-264c9d6c249ba2fc9b13df35cb447fd7", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "9-2cead1e4c813a4f0d10a9bc4aa28bfda", _deleted: true }

      },
      {
      "ok":

      { "_id": "4cdee83a118ea1cf3050b1d006144d46", "_rev": "2-9f2df19059d9a460a12740a63a4d95e9", _deleted: true }

      }
      ]

      GET /database/4cdee83a118ea1cf3050b1d006144d46?rev=10-df4bf65a6104ea240f100c30d3cb245d returns
      {
      "error": "not_found",
      "reason": "missing"
      }

      Attachments

        1. cleaned-up.txt
          2 kB
          Paul Joseph Davis
        2. COUCHDB-1163-1.1.x.patch
          23 kB
          Paul Joseph Davis
        3. COUCHDB-1163.patch
          21 kB
          Paul Joseph Davis
        4. formatted_rev_tree.txt
          3 kB
          Paul Joseph Davis
        5. Couch logging for jira issue
          7 kB
          Clare Walsh

        Issue Links

          Activity

            People

              rnewson Robert Newson
              jameshowe James Howe
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: