Are you seeing this behavior on Android, iOS, or both? > On Aug 8, 2014, at 6:17 AM, Arash Ashrafi <[email protected]> wrote: > > > A one-shot replication, very often, needs to be FOLLOWED by some other action > WHEN finished. > > In order to be able to do that, a reliable mechanism is required to say that: > 1. it is stopped > 2. how has it stopped (successful, interrupted, neverStarted etc.) > > At the moment, by observing replication change notifications, the following > cases are not easy to handle: > 1. If you start the replication with no network connection, it sends only one > notification with "Offline" status and gets stuck (never goes to "Stopped") > 2. If network connection get's lost in the middle of replication, it keeps > sending "Offline" replication notifications, strangely with "completed > changes count" being increased and going above "changes count". > 3. If network connection get's lost in the middle of replication, it stops at > some point, but there is no control over how long it should wait till it > gives up trying. > > Suggestions: > a) Improving the one-shot replication mechanism to guaranty that it always > stops at some point (goes to "Stop" status) > b) Providing some API for one-shot replications to provide a time-out setting > (so that if it can not progress for any reason, it goes to "Stop" status > after that time) > c) Having a final replication status property, to access after replication > has stopped, in order to find out the out come of the replication. > > > > -- > You received this message because you are subscribed to the Google Groups > "Couchbase Mobile" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mobile-couchbase/e5939f70-31e3-459a-8f2f-bff381fd08df%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout.
-- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/FBF67513-92DD-4173-9E15-98C47E810B1A%40gmail.com. For more options, visit https://groups.google.com/d/optout.
