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?

-- 
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/78abacee-b91c-445c-82be-70193c7c902e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to