Android, Changes in replication algorithm from 1.0.0-beta3rc10 to 1.0.3

22 views
Skip to first unread message

Olivier Picciotto

unread,
Jan 7, 2015, 12:33:51 PM1/7/15
to mobile-c...@googlegroups.com
Hello 


I have an Android Phonegap, application using CBlite based on version  1.0.0-beta3rc10 (uses the couchbase-lite-java-core-1.0.0-beta3rc10.jar) working perfectly with replication with a CouchDB server 1.6.1. I am replicating from the server about 6000 documents to the mobile starting from an empty database (Not even created ) on the mobile .

By looking to the CouchDB server console I can see all the requests the client is doing to the server, As I can see, after issuing a long poll, the client tries to download each document from the server,  at regular intervals, the client issues a PUT request.

Now, Using latest 1.03 Version, I experience a weird behavior starting from an empty database on the client side.:

1) Long poll is done, and documents start to be downloaded.
2) No PUTs are done at regular intervals..
3) Downloading stops (Seems stalled) before having done all the 6000 documents..
4) The only way to restart downloads is by killing the mobile app and restarting it and in this case, downloads seems to start again at the beginning
5) After several mobile apps restarts, the 6000 documents are correctly downloaded...

I tested this same app on iOS using 1.03 and all is ok ...

Any ideas about this behavior ?




Traun Leyden

unread,
Jan 7, 2015, 1:32:30 PM1/7/15
to mobile-c...@googlegroups.com
Hi Olivier,

I have seen large replications like that go slower than I'd like, but I haven't seen them "stall out" like that.

Can you please file a ticket here?

Also, it would be useful if you could install a network sniffing tool such as HTTPScoop to be able to look at the http traffic.  (you will most likely need to configure it to listen on port 4984)



--
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/3b64475a-fbd6-4651-9abb-55cdbce6e015%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Traun Leyden

unread,
Jan 7, 2015, 2:21:36 PM1/7/15
to mobile-c...@googlegroups.com
Btw, we wrote up some bug reporting guidelines which should help minimize the back and forth and speed things up.
Reply all
Reply to author
Forward
0 new messages