iOS CouchbaseLite changes rejected if >=20 local revisions between replications


I am noticing that if I pull replicate an existing document with a revision of “1-…”, then make more then 20 local revisions, incrementing its revision to “21-…” or greater, then push replicate, the replication succeeds, however the SG Database does NOT save the pushed revision. It still shows the document with revision “1-…” on the server.

I also notice that the CBL replication succeeds with no errors. It would make sense that this is related to the maxRevCount of 20, configured in CBLManager.

I tried db.compact() each time I save, as well as calling db.compact() before the push replicate. The document revisions are still ignored by Couchbase Server DB.



What version of CBL, on what platform? And what version of SG?
Also, how exactly did you verify that SG does not have revision 21?