Hello!
I am migrating my app from CBL 1.4 to CBL 2.8!
I am getting ReplicatedDocument{1d34f636-fdb2-420d-b773-01cd9e8ea14a,err=CouchbaseLiteException{CouchbaseLite,10409,'conflicts with newer server revision
I am using one-shot PULL-PUSH replication. So first I perform PULL and only after pull, i perform push replication
I checked CBL 2.8 revision and I got
16-47622201e8b65b9353c9c74bb08304f4a86927b9
(thats how i got it: DatabaseManager.getDatabase().getDocument(“1d34f636-fdb2-420d-b773-01cd9e8ea14a”).getRevisionID())
On Sync Gateway 2.0 side I got following info:
{
“rev”: “5-cac1e2f6a087281efb60b74b83b818bc”,
“sequence”: 2431630,
“recent_sequences”: [
2431509,
2431529,
2431543,
2431620,
2431630
],
“history”: {
“revs”: [
“3-e9f045e48cd5432ecf6a99db665e0cf3”,
“5-cac1e2f6a087281efb60b74b83b818bc”,
“4-b9f07e6265088815f3fc32c1beb60d1cabe51e24”,
“1-e05fe89d3da096c0fdd097bbb7980509”,
“2-7f73bcd11343728b3c8c0f70def8ab1883a600a8”
]
…
}
What may be the reason for such behaviour? Why if server revision is newer, the PULL replicator did not get it from server?
P.S.: I am just testing so I got only 1 mobile device and a web site, which can also modify docs.
Never get in a such situation during CBL 1.4 era
Also allow_conflicts option in my sync gateway config is missing, means that it is set to true as per documentation