Details
-
Bug
-
Resolution: Fixed
-
Minor
-
2.1.0, 2.2.0
-
Security Level: Public
-
None
-
Tested on OS X
Description
In the following page:
http://docs.couchbase.com/couchbase-manual-2.2/#how-expiration-impacts-views
It is stated that when an item is expired and the view is called with "include_docs=true" the doc in the view will be null.
In fact this is not exact:
Until the "Disk cleaner" process is executed, the behavior is the following:
- if the item is expired and nobody has accessed it: the key and document is still visible in the view
- if the view is called just after an access (get operation) to an expired item the document is null in the view (as stated in the documentation)
- then the document is not anymore on disk so not visible in the view.
It could be interesting to validate with engineering that the behavior that I have described is the one expected, and clarify that in the documentation. Because when I read the doc,I expect the document to be null as soon as the item is expired.