You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Traun Leyden <tr...@gmail.com> on 2014/03/25 00:19:44 UTC
Re: when replication hits wrong update_validation
@svilen:
This has been found and fixed in
https://github.com/couchbase/couchbase-lite-android/issues/23
Also if you need to continue the thread, respond on the github issue or via
https://groups.google.com/forum/?fromgroups#!forum/mobile-couchbase
On Tue, Jul 2, 2013 at 5:44 AM, svilen <az...@svilendobrev.com> wrote:
> g'day
>
> so i had update_validation function with wrong code (using wrong
> var-name "doc" inside) and getting
> "
> Uncaught server error: {case_clause,
> {[{<<"message">>,
> <<"doc is not defined">>
> ...
> "
>
> so touchdb (android) replication doing
> POST /thedb/_bulk_docs
> got 500 "internal error"
>
> and no document has been copied.
>
> i've now fixed the server update_validator, but nothing is getting
> copied anymore - it seems that regardless of the above failure,
> replicator has moved the "since" number, and now thinks there's
> nothing to copy.
>
> so 2 questions:
> a) can i force it to copy all again? i'm not sure if that "since" number
> is kept in touchdb-localy or on server too.
> b) how is this case handled in plain couchdb doing replication?
>
> ciao
> svilen
>