A view is returning docs that no longer exist (stale=False)

Description

Simply, I have a view that will not update the index. For this view, stale=false. The view returns 14 documents that do not exist.

Version: 3.0.1 Community Edition (build-1444)
Cluster State ID: 016-030-319

Components

Affects versions

Fix versions

Labels

Environment

Linux ip-172-16-0-77 3.2.0-76-virtual #111-Ubuntu SMP Tue Jan 13 22:33:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Link to Log File, atop/blg, CBCollectInfo, Core dump

None

Release Notes Description

None

Activity

Raju Suravarjjala September 23, 2016 at 9:49 PM

Bulk closing all invalid bugs, cannot reproduce, duplicate, won't do. Please feel free to reopen

Michael Manoochehri June 22, 2015 at 5:46 PM

Thanks Harsha:

We are going to close this bug since we were able to recover our view by deleting our index, changin indexer_max_doc_size and restarting couchbase.

Harsha HS June 22, 2015 at 5:15 PM

@doubleocherry I think query you are issuing with stale=false is GET /default/_design/distill_user/_view/get_user_by_email?limit=5000&stale=false&descending=false&key=%22ssmith%40newscorp.com%22&inclusive_end=true 200

For distill_user ddoc there is no mapreduce errors reported which indicates all the items were indexed correctly.
As a follow up I have few questions
1. Is the view returning subset of deleted keys or all the deleted keys?
2. Are these keys present in couch files in /opt/couchbase/var/lib/couchbase/data ?

Patrick Varley June 22, 2015 at 9:19 AM
Edited

As Matt rightly pointed out it does not need root privileges to read those files. All those files should be owned by the Couchbase user and when `cbcollect_info` is executed from the UI it will run with Couchbase user permissions. It should be able to read those files.

The only files that cbcollect_info tries to pick up that need root access are the system log files.

Michael Manoochehri June 22, 2015 at 3:21 AM

Incomplete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Is this a Regression?

Unknown

Triage

Untriaged

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created June 19, 2015 at 11:22 PM
Updated September 23, 2016 at 9:49 PM
Resolved June 22, 2015 at 7:02 PM
Instabug