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

Pull replication by doc-IDs, from a CouchDB version < 1.1.0, no longer works when sent from a CouchDB 1.1.0+ server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.1
    • Replication
    • None

    Description

      After BenoƮt added the built-in _changes filter _doc_ids to trunk (and now in 1.1.x as well), I updated the replicator to use it for the replication by doc-IDs. The advantages of this are:

      1) Elimination of very specific, and harder to maintain, code from several replicator modules;
      2) Allow for continuous by doc-IDs replication (this was not possible before because a replication by doc-IDs didn't use the _changes stream at all)

      The change was done in the following commit:

      https://github.com/apache/couchdb/commit/5afece2131f4ef4000d768b671bddbbf714303d9

      It happens that with the branch 1.1.x (and trunk as well), it's no longer possible to pull replicate by doc-IDs from previous CouchDB versions (since they don't have that new built-in filter).

      The following patch fixes the issue by changing only 1 module of the replicator. If no objections, I'll commit it later.

      Attachments

        1. COUCHDB-1028.patch
          7 kB
          Filipe David Borba Manana

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: