This looks like a bug in the Java code around the Couchbase Lite core.
Could you update to the latest developer build (16, I believe) and see if it still happens?
Yes, I’m using DB 21. The issue occurs, when the app is doing a lot of inserting while there is a live query running.
There’s no way to recover from it.
Can you provide some more details . Does the problem happen if the pull replicator is saving a whole bunch of documents (as a result of a pull) or if your Android app is saving a whole bunch of documents ?
If the latter, can you share the code snippet that you are using to save the documents. For instance, do you batch them?