I am using Couchbase Lite 1.3.2 (build 6) and am having occasional problems with replication. The following log is the result of a client creating a document (id 2cf3c9e5...
), and then a server immediately makes a change to it. The client doesn’t receive the change for some reason. It doesn’t happen often, but is definitely happening once and a while. If I select the document from the client database it shows rev 1-3d618...
. Here’s the log from the sync gateway, and below is the document. Any ideas?
23:20:08.921717 2016-11-24T23:20:08.921+11:00 CRUD+: Invoking sync on doc "2cf3c9e5-c28f-4662-ba2e-8c0757dac42b" rev 1-3d618c5092d04e301ab40558086bb068
23:20:08.924250 2016-11-24T23:20:08.924+11:00 CRUD: Doc "2cf3c9e5-c28f-4662-ba2e-8c0757dac42b" in channels "{ch_private_559241a1-b27c-484d-b090-093e470d0104, ch_private_6ff22496-9fc0-47d6-8185-221ea4d903aa, ch_private_7f3b03b8-340d-4d41-80f9-d4ebec187216}"
23:20:08.924372 2016-11-24T23:20:08.924+11:00 Cache: SAVING #431351
23:20:08.924768 2016-11-24T23:20:08.924+11:00 CRUD: Stored doc "2cf3c9e5-c28f-4662-ba2e-8c0757dac42b" / "1-3d618c5092d04e301ab40558086bb068"
23:20:08.924814 2016-11-24T23:20:08.924+11:00 HTTP+: #6834: --> 201 (6.1 ms)
23:20:08.924968 2016-11-24T23:20:08.924+11:00 Events+: Event queue worker sending event Document change event for doc id: 2cf3c9e5-c28f-4662-ba2e-8c0757dac42b to: Webhook handler [http://192.168.0.13:8088/pomochat/webhook]
23:20:08.926983 2016-11-24T23:20:08.926+11:00 Events+: Webhook handler ran for event. Payload posted to URL http://192.168.0.13:8088/pomochat/webhook, got status 200 OK
23:20:08.930742 2016-11-24T23:20:08.930+11:00 HTTP: #6835: POST /sync_gateway/_bulk_get (as admin)
23:20:08.931277 2016-11-24T23:20:08.931+11:00 HTTP+: #6835: --> 200 (1.1 ms)
23:20:08.934673 2016-11-24T23:20:08.934+11:00 HTTP: #6836: POST /sync_gateway/_bulk_docs (as admin)
23:20:08.935474 2016-11-24T23:20:08.935+11:00 CRUD+: Invoking sync on doc "2cf3c9e5-c28f-4662-ba2e-8c0757dac42b" rev 2-082290ceadbbc2281b13051962cd50e8
23:20:08.936314 2016-11-24T23:20:08.936+11:00 CRUD+: Saving old revision "2cf3c9e5-c28f-4662-ba2e-8c0757dac42b" / "1-3d618c5092d04e301ab40558086bb068" (781 bytes)
23:20:08.936523 2016-11-24T23:20:08.936+11:00 CRUD+: Backed up obsolete rev "2cf3c9e5-c28f-4662-ba2e-8c0757dac42b"/"1-3d618c5092d04e301ab40558086bb068"
23:20:08.936647 2016-11-24T23:20:08.936+11:00 Cache: SAVING #431352
23:20:08.936915 2016-11-24T23:20:08.936+11:00 CRUD: Stored doc "2cf3c9e5-c28f-4662-ba2e-8c0757dac42b" / "2-082290ceadbbc2281b13051962cd50e8"
23:20:08.936957 2016-11-24T23:20:08.936+11:00 HTTP+: #6836: --> 201 (2.8 ms)
23:20:08.937059 2016-11-24T23:20:08.937+11:00 Events+: Event queue worker sending event Document change event for doc id: 2cf3c9e5-c28f-4662-ba2e-8c0757dac42b to: Webhook handler [http://192.168.0.13:8088/pomochat/webhook]
23:20:08.938906 2016-11-24T23:20:08.938+11:00 Events+: Webhook handler ran for event. Payload posted to URL http://192.168.0.13:8088/pomochat/webhook, got status 200 OK
The doc:
{
"owner": "6ff22496-9fc0-47d6-8185-221ea4d903aa",
"server_timestamp_utc": "2016-11-24T12:20:08.924268540Z",
"read_receipts_by_owner": {
"7f3b03b8-340d-4d41-80f9-d4ebec187216": "dda22395-7968-4977-b31a-6547a237baeb",
"559241a1-b27c-484d-b090-093e470d0104": "1aa1eafe-d04b-49b0-8065-c1329a291c2a"
},
"audit": {
"user_id": "admin",
"client_timestamp_utc": "2016-11-24T12:20:08.932Z"
},
"_sync": {
"time_saved": "2016-11-24T23:20:08.936535326+11:00",
"sequence": 431352,
"rev": "2-082290ceadbbc2281b13051962cd50e8",
"history": {
"channels": [
[
"ch_private_559241a1-b27c-484d-b090-093e470d0104",
"ch_private_6ff22496-9fc0-47d6-8185-221ea4d903aa",
"ch_private_7f3b03b8-340d-4d41-80f9-d4ebec187216"
],
[
"ch_private_559241a1-b27c-484d-b090-093e470d0104",
"ch_private_6ff22496-9fc0-47d6-8185-221ea4d903aa",
"ch_private_7f3b03b8-340d-4d41-80f9-d4ebec187216"
]
],
"revs": [
"1-3d618c5092d04e301ab40558086bb068",
"2-082290ceadbbc2281b13051962cd50e8"
],
"parents": [
-1,
0
]
},
"channels": {
"ch_private_6ff22496-9fc0-47d6-8185-221ea4d903aa": null,
"ch_private_7f3b03b8-340d-4d41-80f9-d4ebec187216": null,
"ch_private_559241a1-b27c-484d-b090-093e470d0104": null
},
"recent_sequences": [
431351,
431352
]
},
"chat_group_id": "661322acc19a10786c0adac0e8e3c52a",
"state": null,
"delivery_receipts_by_owner": {
"7f3b03b8-340d-4d41-80f9-d4ebec187216": "5c4da70c-7476-4899-a68c-94cba50814f9",
"559241a1-b27c-484d-b090-093e470d0104": "e6588d3b-3141-4e07-a5b1-baa3147d9f2d"
},
"type": "chat-message",
"content": {
"message": "Sdd",
"type": "text"
},
"attached_document_ids": [],
"client_timestamp_utc": "2016-11-24T12:20:08.366Z"
}