CBL Android - Gracefully Update Filtered Pull Replication

62 views
Skip to first unread message

Justin Wade

unread,
Mar 5, 2015, 7:31:39 PM3/5/15
to mobile-c...@googlegroups.com
I am looking for a sanity check.  

I am using filtered pull replication and I can't seem to update the filter gracefully.  I can update the array used for the filter and I can see the changes on the replication object via ".getChannels".  

However, the new channel docs do not replicate down.  I am currently having to recreate the object to get the added channel's to work.  This doesn't seem right though. Anyone able to update the filter successfully on android CBL without having to recreate the pull replication object? 

Thanks in advance, 

-Justin

P.S. I'm trying to work around the below github issue and found that if I first filter newly added channel's I can consistently pull down docs which I can't reliably do otherwise.

Pasin Suriyentrakorn

unread,
Mar 6, 2015, 1:59:20 PM3/6/15
to mobile-c...@googlegroups.com
That is the right behavior that you will need to restart the replicator to reflect changes in channels or filter properties. It is an API doc error that doesn't mention that.

Justin

unread,
Mar 6, 2015, 2:59:50 PM3/6/15
to mobile-c...@googlegroups.com
Pasin, thank you for the confirmation.
Reply all
Reply to author
Forward
0 new messages