CBL Replication states

58 views
Skip to first unread message

Matt Quinn

unread,
Feb 3, 2014, 6:37:51 PM2/3/14
to mobile-c...@googlegroups.com
Hi all,

I'm working on unit tests so I can file an issue about unexpected results from CBL Android's Replication.isRunning() and getStatus() methods, but first I want to confirm what the expected states are.

This is my best guess at the expected results. Do these look right?
https://gist.github.com/mjq/51d321d25b36c797aac3

Thanks,
Matt

Traun Leyden

unread,
Feb 3, 2014, 8:06:00 PM2/3/14
to mobile-c...@googlegroups.com
Jens it's probably best for you to confirm this.
--
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/411106b9-b82f-4cc5-b7b6-d0a2c4d2a123%40email.android.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jens Alfke

unread,
Feb 4, 2014, 12:44:06 AM2/4/14
to mobile-c...@googlegroups.com

On Feb 3, 2014, at 3:37 PM, Matt Quinn <ma...@mjquinn.ca> wrote:

> This is my best guess at the expected results. Do these look right?
> https://gist.github.com/mjq/51d321d25b36c797aac3

I've added comments on the gist.

—Jens

Matt Quinn

unread,
Feb 4, 2014, 10:47:32 AM2/4/14
to mobile-c...@googlegroups.com
On Mon, Feb 03, 2014 at 09:44:06PM -0800, Jens Alfke wrote:
> > https://gist.github.com/mjq/51d321d25b36c797aac3
>
> I've added comments on the gist.

Perfect, thanks Jens! You even anticipated my next question about how
continuous replications deal with error states.

If a one-shot replication hits an error, does it retry itself as well,
or simply record the error and stop? (The intended behaviour, I mean; I
understand Android might not have implemented it yet).

Thanks,
Matt

Jens Alfke

unread,
Feb 4, 2014, 11:30:23 AM2/4/14
to mobile-c...@googlegroups.com

On Feb 4, 2014, at 7:47 AM, Matt Quinn <ma...@mjquinn.ca> wrote:

If a one-shot replication hits an error, does it retry itself as well,

The intention is that it should retry on some classes of error that are likely to be transitory, like host-not-found* or connection-dropped. (I'm being weaselly with the language because I suspect that in the iOS implementation not all cases of this are handled.) But a non-transitory error like a 403 will cause it to stop.

The retry uses an exponential back-off and gives up after a minute or so.

—Jens

* As opposed to being offline, i.e. having no available network route anywhere.

Herman Chan

unread,
Feb 4, 2014, 7:25:50 PM2/4/14
to mobile-c...@googlegroups.com
Hi Jens & Traun,

Any idea on when's reachability going to get implemented on Android?

Herman

Traun Leyden

unread,
Feb 4, 2014, 8:31:08 PM2/4/14
to mobile-c...@googlegroups.com

I don't have an ETA, but since we are currently in the middle of splitting the Couchbase Lite Android projects and repos into a pure java and Android specific libraries, it will happen sometime after that. 

I'm planning to send a follow up email once that plan is nailed down a bit further.


--
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 mobile-couchba...@googlegroups.com.

Herman Chan

unread,
Feb 5, 2014, 7:53:07 AM2/5/14
to mobile-c...@googlegroups.com
ok, thanks Traun!
Reply all
Reply to author
Forward
0 new messages