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 2018/09/28 18:24:27 UTC

[GitHub] nickva opened a new pull request #1631: Do not crash replicator on VDU function failure

nickva opened a new pull request #1631: Do not crash replicator on VDU function failure
URL: https://github.com/apache/couchdb/pull/1631
 
 
   Previously a user could insert a VDU function into one of the _replicator
   databases such that it prevents the replicator application from updating
   documents in that db. Replicator application would then crash and prevent
   replications from running on the whole cluster.
   
   To avoid crashing the replicator when saving documents, log the error
   and return `{ok, forbidden}`. The return might seem odd but we are
   asserting that forbidden is an OK value in this context and explicitly
   handling it. This shape of the return also conforms to the expected
   `{ok, _Rev}` result, noticing that `_Rev` is never actually used.
   
   - [x] Code is written and works correctly;
   - [x] Changes are covered by tests;

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services