nickva edited a comment on issue #1734: Stop replications on target document 
write failures
URL: https://github.com/apache/couchdb/pull/1734#issuecomment-438478801
 
 
   Added per-replication job configuration. 
   
   To manually play with it and test refer to this script:
   
   https://gist.github.com/nickva/8dacbda953db77292d864f59af2d6d2c
   
   * Create a source, add a 10k doc to it
   * Set `max_document_size = 10000`
   * Set `stop_on_doc_write_failures = true`
   * Create a replication
   * Check `_scheduler/docs` for state:
     * If set stop_on_doc_write_failure = true is should stop with:
       ```"{doc_write_failure,\"<docid>\", {error,request_body_too_large}}",```
      crashed state.  It should not complete.
   * Reset the document size limit, wait for the replication to complete (there 
is a quicker reschedule step in the file).
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to