You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/07/08 14:02:20 UTC

[GitHub] [couchdb] nickva opened a new pull request, #4095: Implement winning_revs_only option for the replicator

nickva opened a new pull request, #4095:
URL: https://github.com/apache/couchdb/pull/4095

   `winning_revs_only` option replicates only the winning revisions from the source to the target, effectively discarding conflicts.
   
   This option may be used as an alternative to the custom VDU strategy, or manual _all_docs read and POST to target scripts, often used by users to discard conflicted document revisions.
   
   Behind the scenes the implementation simply switches the `_changes` feed style to `main_only` from the replication default of `all_docs`.
   
   Additionally, when enabled, the `winning_revs_only` option, will generate a different replication ID and use a different set of checkpoints than the default case. This should allows first replicating with `winning_revs_only: true`, and then later replicate normally between the same endpoints, in order to "backfill" the rest of the revisions.
   
   The main test is in the couch_replicator_many_leaves since we already assert how multiple conflicting docs replicate there. The test was also simplified to remove the `{remote, remote}` tuple as we only have remote endpoints currently.
   
   Issue: https://github.com/apache/couchdb/issues/4034
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] nickva merged pull request #4095: Implement winning_revs_only option for the replicator

Posted by GitBox <gi...@apache.org>.
nickva merged PR #4095:
URL: https://github.com/apache/couchdb/pull/4095


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org