Wondering if someone can point me in the right direction re: couchbase lite continuous pull replication with a couchdb server. I’m seeing an infinite sync loop that churns through POST requests to local-server/_changes as fast as seems possible. I initially thought it was caused by a corrupt local db, but deleting it and restarting replication causes the same churn repeatedly. I’m on couchdb 1.6.1 and couchbase lite 1.2.0. I'm running a skeleton iOS app, copying + pasting the code examples from the couchbase lite docs.
I have 7 documents in a test database. Here's what the sync progress in the console output in xcode looks like:
https://drive.google.com/file/d/0B4obkCKucQGyOXpzdmo2LWRiOTQ/view?usp=sharing
For reference, the replication code is this:
NSURL* url = [NSURL URLWithString: kServerDbURL];
_push = [self.database createPushReplication: url];
_pull = [self.database createPullReplication: url];
_push.continuous = YES;
_pull.continuous = YES;
NSNotificationCenter* nctr = [NSNotificationCenter defaultCenter];
[nctr addObserver: self
selector: @selector(replicationChanged:)
name: kCBLReplicationChangeNotification
object: _push];
[nctr addObserver: self
selector: @selector(replicationChanged:)
name: kCBLReplicationChangeNotification
object: _pull];
[_push start];
[_pull start];
Any ideas?
On Mar 29, 2016, at 12:17 PM, Marty Penner <penner...@gmail.com> wrote:
Wondering if someone can point me in the right direction re: couchbase lite continuous pull replication with a couchdb server. I’m seeing an infinite sync loop that churns through POST requests to local-server/_changes as fast as seems possible.