Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
3.0.1
-
Security Level: Public
-
Ubuntu 12.04 64 bit/Couchbase 3.0.1 Community
MacOSX (10.9.5)/Couchbase 3.0.1 Community
-
Triaged
-
Ubuntu 64-bit
-
Unknown
Description
From time to time, views get "corrupted" and multiple rows with different values are emitted for a single document.
For example, when I tried to reproduce the bug, I created a bucket and populated it with 1000000 documents containing one single field - "random" - initialised to a random value in the range 0-9. Then I just used the following view to get all the documents for a given value of "random", assigned a new random value to each document and saved them.
function (doc, meta)
{ emit(doc.random, null); }The problem is, after a while, the view starts returning things like that :
"id":"2ae8bdf2-0de1-4345-880d-5fce39286099","key":0,"value":null},
[...]
"id":"2ae8bdf2-0de1-4345-880d-5fce39286099","key":1,"value":null},
This problem is observed even when you request the view with stale=false.
Attachments
Issue Links
- relates to
-
MB-14968 Backport MB-13160 - View emitting only one field of a document results in multiple rows with different values
- Closed
For Gerrit Dashboard: MB-13160 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
48897,6 | MB-13160 Update ID B-tree before de-duplication | master | couchdb | Status: MERGED | +2 | +1 |
48971,2 | MB-13160 Duplicaton of rows. | master | manifest | Status: MERGED | +2 | +1 |
48975,2 | MB-13160 Submitting sherlock manifest and pointing couchdb to hhs github | master | manifest | Status: MERGED | +2 | +1 |
49458,2 | MB-13160: Add unit test | master | couchdb | Status: ABANDONED | -1 | -1 |
50082,2 | MB-13160 Change remote for couchstore to github.com/hsharsha | master | manifest | Status: MERGED | +2 | +1 |
51891,2 | MB-13160 Update ID B-tree before de-duplication | 3.x | couchdb | Status: MERGED | +2 | +1 |