This sounds like a bug in TouchDB-Android. Can you file a bug here?
https://github.com/couchbase/couchbase-lite-android/issues?state=open For a good description of how replication works, see: https://github.com/couchbase/couchbase-lite-ios/wiki/Replication-Algorithm On Tue, Jul 2, 2013 at 5:44 AM, svilen <[email protected]> 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 >
