[ 
https://issues.apache.org/jira/browse/COUCHDB-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15576242#comment-15576242
 ] 

ASF GitHub Bot commented on COUCHDB-3199:
-----------------------------------------

GitHub user nickva opened a pull request:

    https://github.com/apache/couchdb-couch-replicator/pull/50

    Let "error" replication document updates bypass the VDU function.

    This is necessary in the case where an software upgrade happens with
    a more restrictive VDU function. Replicator db might end up having documents
    which would not pass validation anymore, leading to a replicator manager
    crash when it updates the document with an "error" state.
    
    So in case of an "error" state allow malformed document so the user can
    see the error.
    
    COUCHDB-3199

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-couch-replicator couchdb-3199

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch-replicator/pull/50.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #50
    
----
commit 48996b108c458421c8a73097be152769bdc3fc48
Author: Nick Vatamaniuc <vatam...@apache.org>
Date:   2016-10-14T19:13:47Z

    Let "error" replication document updates bypass the VDU function.
    
    This is necessary in the case where an software upgrade happens with
    a more restrictive VDU function. Replicator db might end up having documents
    which would not pass validation anymore, leading to a replicator manager
    crash when it updates the document with an "error" state.
    
    So in case of an "error" state allow malformed document so the user can
    see the error.
    
    COUCHDB-3199

----


> Replicator VDU function doesn't acount for an already malformed document in 
> replicator db
> -----------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-3199
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3199
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Nick Vatamaniuc
>
> In case when code is updated from an older version of couchdb which didn't 
> have (or had a less restrictive) VDU function. A malformed document could 
> have ended up in the _replicator database.
> Replicator will try to parse it and flag it as an error then try to update 
> the document. However the more restrictive VDU function will cause the 
> document update to crash the replicator manager.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to