Restarting one-shot replication

23 views
Skip to first unread message

dyowee

unread,
Mar 31, 2014, 8:38:25 AM3/31/14
to mobile-c...@googlegroups.com
Good day,

Is there a correct/suggested way of restarting a replication? Or calling stop, then start? It seems that calling stop doesn't immediately stop pending HTTP requests.

Regards,
Joey

Jens Alfke

unread,
Mar 31, 2014, 10:48:49 AM3/31/14
to mobile-c...@googlegroups.com
On Mar 31, 2014, at 5:38 AM, dyowee <csharpen...@gmail.com> wrote:

Is there a correct/suggested way of restarting a replication? Or calling stop, then start?

Are you still on TouchDB? I’m really not sure what the answer was for that. In Couchbase Lite b3 you can call stop and then start.

It seems that calling stop doesn't immediately stop pending HTTP requests.

The replicator runs on a background thread so it won’t stop immediately, but it should stop very soon.

—Jens

dyowee

unread,
Mar 31, 2014, 4:34:40 PM3/31/14
to mobile-c...@googlegroups.com
Yes sir, we are still using TouchDB for now. I still haven't been able to figure out why the replication stops (intermittent) after the PUT request for a checkpoint. So my workaround for now is to try to restart the replication if the 'completed' status hasn't changed for a couple of minutes.

Regards,
Joey
Reply all
Reply to author
Forward
0 new messages