-
Notifications
You must be signed in to change notification settings - Fork 141
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
Comments
What versions of Sync Gateway and Couchbase Server are you using? |
sync gateway 1.3 but only with walrus for this test. If the indexing behaviour might be different with couchbase I'll check. |
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. |
I've moved this to couchbaselabs/walrus#18. |
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
The text was updated successfully, but these errors were encountered: