{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1090","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1090/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1090/events","html_url":"https://github.com/couchbase/sync_gateway/issues/1090","id":102853096,"number":1090,"title":"_changes feed not returning recent documents","user":{"login":"adamcfraser","id":8866453,"avatar_url":"https://avatars.githubusercontent.com/u/8866453?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcfraser","html_url":"https://github.com/adamcfraser","followers_url":"https://api.github.com/users/adamcfraser/followers","following_url":"https://api.github.com/users/adamcfraser/following{/other_user}","gists_url":"https://api.github.com/users/adamcfraser/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcfraser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcfraser/subscriptions","organizations_url":"https://api.github.com/users/adamcfraser/orgs","repos_url":"https://api.github.com/users/adamcfraser/repos","events_url":"https://api.github.com/users/adamcfraser/events{/privacy}","received_events_url":"https://api.github.com/users/adamcfraser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-24T17:51:56Z","updated_at":"2015-08-24T17:59:44Z","closed_at":"2015-08-24T17:59:44Z","body":"User reported the _changes feed not returning recent documents for a channel.  Based on the information provided, the documents appear to be getting channeled properly.  Restarting Sync Gateway doesn't change anything, so this doesn't look like a case of Sync Gateway dropping the server mutation feed.\r\n\r\nIn particular, it looks like these docs aren't being returned by the view-based channel cache backfill.  Using this ticket to track followup with user to understand whether this is due to the document not being indexed, or the range being requested by Sync Gateway."},"comment":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/comments/134318533","html_url":"https://github.com/couchbase/sync_gateway/issues/1090#issuecomment-134318533","issue_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1090","id":134318533,"user":{"login":"adamcfraser","id":8866453,"avatar_url":"https://avatars.githubusercontent.com/u/8866453?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcfraser","html_url":"https://github.com/adamcfraser","followers_url":"https://api.github.com/users/adamcfraser/followers","following_url":"https://api.github.com/users/adamcfraser/following{/other_user}","gists_url":"https://api.github.com/users/adamcfraser/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcfraser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcfraser/subscriptions","organizations_url":"https://api.github.com/users/adamcfraser/orgs","repos_url":"https://api.github.com/users/adamcfraser/repos","events_url":"https://api.github.com/users/adamcfraser/events{/privacy}","received_events_url":"https://api.github.com/users/adamcfraser/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T17:59:44Z","updated_at":"2015-08-24T17:59:44Z","body":"I agree there are some similarities, but a few notable differences:\r\n1. Based on the sample doc you provided, the document has the appropriate channels assigned to it.\r\n2. You're still seeing the problem when running with since=0, so it's not the case that the client has a since value higher than the missing docs.\r\n\r\nA few more questions, to rule out some possibilities:\r\n1. Are the missing documents particularly large (i.e. larger than 1MB)?  There was an issue in older versions of Couchbase Server where large docs weren't being indexed properly.\r\n2. What's the value of the _sync:seq document in your database?"}}