HI @eunice.huang @blake.meike,
thanks for your reply.
- In this example, is C always miss doc 4? or device which has missing doc can be random? or a device miss a random document?
a device misses a random document. but I not ensure device which has missing doc be random.
- I wonder if there is anything related to channel config,
the sync gateway keypoint config statement as follows:
“log”: [“*”],
“adminInterface”: “0.0.0.0:4985”,
“interface”: “0.0.0.0:4984”,
“databases”: {
“kitchen”: {
“server”: “ydd-cbs-0000.ydd-cbs.default.svc:8091”,
“bucket”: “kitchen”,
“username”: “kitchen”,
“password”: “Ydd.app@609”,
“cache”: {
“channel_cache_max_length”: 2000
},
“users”: {
“GUEST”: { “disabled”: true },
“admin”: {
“password”: “Ydd.app@169”,
“admin_roles”: [ “admin” ]
}
},
“roles”: {
“admin”: {}
},
“serverReadTimeout”: 5,
“serverWriteTimeout”: 5,
“enable_shared_bucket_access”: true,
“import_docs”: “continuous”,
“sync”:
`
function sync(doc, oldDoc) {
…
- are all 3 devices subscripted the same channels which all the documents can be shared through the channels?
yes. 3 devices subscribed the same channels with the same sg gateway user. all the documents can be shared through the channel.
we developing a restaurant management system, now the design mind is per restaurant has one sg user, the user can register logical users(management system user), per user has an own channel, I use the channels control which document will be sync.
- In general, it is probably a lot easier to crank up the level on the debug log, in order to diagnose problems like this.
I set the android logs as verbose
, the sg logs as log[*]
. the logs as follows:
android logs:
2019-06-06 12:35:15.650 15926-16295/com.couchbase.todo W/CouchbaseLite/NETWORK: WebSocketListener.onFailure() response → null: java.net.SocketException: Connection reset
2019-06-06 12:35:15.651 15926-15985/com.couchbase.todo W/C4Socket: C4Socket.dispose() handle → 547980277552
2019-06-06 12:35:15.652 15926-15985/com.couchbase.todo E/CouchbaseLite/REPLICATOR: {Repl#2}==> N8litecore4repl10ReplicatorE /data/user/0/com.couchbase.todo/files/user1.cblite2/ ->ws://62.234.199.112:4984/todo/_blipsync @0x7f940659c8
2019-06-06 12:35:15.653 15926-15985/com.couchbase.todo E/CouchbaseLite/REPLICATOR: {Repl#2} Got LiteCore error: POSIX error 104 “Connection reset by peer”
sg logs same the lite logs.
I have a question:
lite will send the heartbeat to sync gateway? if I use wireshark catch network package, I haven’t caught any heartbeat package, is it normal?
I set the lite logs level to DEBUG, but I haven’t see the websocket PING message.
thanks again.
angular