{"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":"_sync:seq less than document sequence values causing missing _changes","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":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-24T17:51:56Z","updated_at":"2015-08-24T18:10:33Z","closed_at":null,"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/134321769","html_url":"https://github.com/couchbase/sync_gateway/issues/1090#issuecomment-134321769","issue_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1090","id":134321769,"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-24T18:10:33Z","updated_at":"2015-08-24T18:10:33Z","body":"The value of _sync:seq is unexpected.  There's shouldn't be a scenario where there are documents with sequence values higher than _sync:seq in your database, as _sync:seq is what's used to generate the sequence numbers in the first place. \r\n\r\nI don't know how that could happen.  Was there any backup/restore of your couchbase server that could have rolled back the _sync:seq value?"}}