Context:
- CBL Android 2.8.6
- Couchbase 6.6.2
- Sync Gateway 2.5.1
I’m not sure whether this is something CBL, Sync Gateway, or Couchbase-related (or a combination), but thought I’d start here. Please re-direct as required.
We are currently running a test case to check our push filtering implementation. Something like this:
- On Android device, create doc A
- Replication runs and pushes doc A via Sync Gateway to Couchbase.
- Delete doc from Couchbase server:
DELETE from db WHERE meta().id = A
- On Android device, reset replication checkpoint and re-sync.
What we’re hoping for is for doc A to be re-pushed (as it no longer exists on the server), but this never happens. We haven’t found a way to force the app to re-push this doc.
I’ve added logging in the app checking what docs sync looks at pushing, but doc A is never in that list. Checking isDocumentPending(docA)
returns false.
Inspecting the local app DB via cblite
CLI shows this:
% revs --remotes A
Document "A"
* 1-4e1243bd22c66e76c2ba9eddc1f91394e57f9f83 ---KL #1118, 4KB [CURRENT] [REMOTE#1]
[REMOTE#1] = wss://our-sync-gateway/_blipsync
Appreciate any help on where to start working out why doc A is not being pushed and/or how to get it to push. Is there another way to purge docs from the server/simulate a doc never having been pushed to the server? Should I be looking at the app-side, at Sync Gateway, or Couchbase server?
Regards,
David