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

Querying views with stale=false sometimes fails #1951

Closed
paulharter opened this issue Jul 11, 2016 · 4 comments
Closed

Querying views with stale=false sometimes fails #1951

paulharter opened this issue Jul 11, 2016 · 4 comments

Comments

@paulharter
Copy link

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:

https://gist.github.com/paulharter/e33422b1f7d20de462f8b48e07f10310

@adamcfraser
Copy link
Collaborator

What versions of Sync Gateway and Couchbase Server are you using?

@paulharter
Copy link
Author

sync gateway 1.3 but only with walrus for this test. If the indexing behaviour might be different with couchbase I'll check.

@paulharter
Copy link
Author

I just checked it with couchbase on my current dev setup and I'm not seeing the problem so I guess it's a side effect of using walrus that doesn't happen with couchbase.

I'm using builds from a couple of months ago so I'll redo it in tomorrow with up to date builds just to be sure.

@adamcfraser
Copy link
Collaborator

I've moved this to couchbaselabs/walrus#18.

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

No branches or pull requests

2 participants