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

fabric:open_revs returns multiple results when one of the shards has stem_interactive_updates=false

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In the case when one of the shards has stem_interactive_updates=false the number of revisions in Doc#doc.rev could exceed revs_limit. In this case we treat responses from different shards as different. This is due to the fact that we include all revs into a key here https://github.com/apache/couchdb-fabric/blob/master/src/fabric_util.erl#L222.
      The fix is to truncate number of revisions returned from couch_db:open_doc_revs to revs_limit.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              iilyak ILYA
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: