-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes feed for * channel missing entries #1213
Comments
Comparing the two, the missing entries are: The index entry docs ( However, the channel clock for the Need to determine why the channel clock didn't get updated. There aren't any write errors appearing in the sync gateway logs for the test. |
Based on followup run with additional diagnostics, there's no write errors happening during clock processing. A few additional bits of information from the new test:
|
Missing entries are also present in the index blocks - looks like strictly a clock issue. |
Root cause is partitioning of channel updates by a single writer. The write logic was still assuming partitioned channel clocks, even though we've deferred that for now to improve read performance. Fix is to move channel clock write up to the change index, to ensure it's done once per batch (instead of once per partition per batch). |
While testing distributed index, QE identified cases where the number of entries returned by a _changes request didn't match the expected count (and also differed from the all_docs results).
API results:
_all_docs (1000 docs): https://gist.github.com/adamcfraser/d51690b9d53080f13f2a
_changes (998 docs): https://gist.github.com/adamcfraser/9a9c299eb83d8738c615
The text was updated successfully, but these errors were encountered: