Sync Gateway attempts to add missing document in changes feed on startup

Hi Adam,

Thank you for your swift response.

In answer to your questions:

  1. I tried retrieving the document through the Sync Gateway admin REST api using the following call:

curl http://localhost:4985/mydatabase/docID
curl http://localhost:4985/mydatabase/docID?rev=revID

Both of these calls produced the following response:

{“error”:“not_found”,“reason”:“missing”}

It seems the tombstone is missing as well, as it clearly indicates “not found” and not “deleted: true”.

  1. By compact I mean the autocompaction which is run by Couchbase when it exceeds a certain treshold. We also triggered the manual compact a few times.
    Aside from that we also tried the “unsafe purge” command on Couchbase in an attempt to free up disk space of removed attachments as described in this thread:
    Running out of disk space - #5 by marvinwright

  2. I have tried to reproduce it on our staging cluster but unfortunately the warnings don’t occur here.
    I will try to get our ops team to add another SyncGateway instance to our production cluster with full logging enabled but I wont have data from this until somewhere next week.

I know this might be hard to answer but do you have any gut feeling of how worried we should be about this? Is this probably nothing or is it more likely to be a ticking timebomb?