nickva commented on pull request #3947: URL: https://github.com/apache/couchdb/pull/3947#issuecomment-1055988998
The `_replicator` role isn't applied to replicated `_bulk_docs` writes to the replication endpoints. In that case, the write is indistinguishable from any other user `_bulk_docs` replicated POST request. In other words, if user has backed up their replication job on `$backup_sever/_replicator/repjob` then they replicate `$backup_server/_replicator -> $server/_replicator`. The `_replicator` role is not applied when the `repjob` document is written. It is only applied when the replication app running on `$server` has started running that job, and wants to do a state update from `"triggered"` to `"failed"`, for example. So, this would be one difference in behavior that I am not 100% sure about. Previously users were able to replicate replicator docs in any state, but after this change those documents could be skipped over. I made a script to demonstrate it https://gist.github.com/nickva/6ad4f7a284fe410d54da5affeb0e43de -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
