Skip to content
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

Stale=false doesn't return latest data in some scenarios #18

Open
adamcfraser opened this issue Jul 12, 2016 · 1 comment
Open

Stale=false doesn't return latest data in some scenarios #18

adamcfraser opened this issue Jul 12, 2016 · 1 comment
Labels

Comments

@adamcfraser
Copy link
Contributor

adamcfraser commented Jul 12, 2016

Moved from couchbase/sync_gateway#1951:

My understanding of the purpose of having the stale=false option on view queries was to ensure that the view was up to date with documents already added, allowing the possibility of "read your own writes" for such indexed queries. Is this correct? If so then it sometimes fails.

It seems that if a view is queried before an insert into the database then a subsequent query of the view can fail.

I have isolated the problem in a test:

Steps to reproduce here:
https://gist.github.com/paulharter/e33422b1f7d20de462f8b48e07f10310

@jamescooke
Copy link

This is a pretty old issue and I've run into it (again) today but forgot that Walrus doesn't handle the undocumented stale=false view param. Is there any new info on what scenarios do mean that Walrus gives a non-stale view? - I haven't been able to find any.

The reason I'm asking is because I want to test an integration that depends on fresh view data. Our test suite runs on Walrus - for one of our tests it creates new entries and then queries them back via a view with stale=false but that never gets the new entries as a result of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants