I am brand new to couchbase and trying to do simple syncing. While it works, there are times the syncing appears to be stuck. I have to kill the app and restart it and then the syncing starts again. Following many questions here, I had tried to make sense from the android logs and nothing odd. I do see the app going to BUSY then IDLE then BUSY again.
At this stage, I am wondering if the connection somehow is stuck for whatever reason that restarting it triggers a successful sync. I have noticed it happens mostly after a successful sync followed by a period of no activity then I do something but it doesn’t do anything. Similarly, I added documents to couchbase that don’t get synced automatically until i restart the app.
For now, I am focused on the app since restarting it is easier than the sync gateway side itself but is there a way I can know the connection might be stale so a manual restart of the replicator is needed? I noticed the state is IDLE when it happens so is it a good way to basically say for e.g. if IDLE continuously for 10 minutes, restart?
So again, my question is how long would be considered to long