Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
2.0
-
Security Level: Public
-
build 1653 on Ubuntu 64bit
-
Untriaged
Description
UI sometimes show duplicate entries for index compaction. Please see attached screenshot.
The UI shows duplicate entries for index compaction for 'default/_design/d1' and 'default/_design/d2'
Curling the _active_tasks shows there is no duplicate index compaction process running.
Below are the steps followed:
- Create a cluster of 2 nodes
- Create 2 buckets (default, saslbucket)
- Load 500K docs in each bucket
./lib/perf_engines/mcsoda.py membase://10.3.2.57:8091 vbuckets=128 doc-gen=0 doc-cache=0 ratio-creates=1 ratio-sets=1 ratio-misses=0 min-value-size=256,512 max-items=500000 exit-after-creates=1 prefix=70one
./lib/perf_engines/mcsoda.py saslbucket:saslpass@10.3.2.57 vbuckets=128 doc-gen=0 doc-cache=0 ratio-creates=1 ratio-sets=1 ratio-misses=0 min-value-size=256,512 max-items=500000 exit-after-creates=1 prefix=70one
- Create ddocs/views
curl -v -X PUT -H 'Content-Type: application/json' 'http://saslbucket:saslpass@10.3.2.57:8092/saslbucket/_design/d1' \
-d '{"views": { "v1":{"map":"function(doc)
curl -v -X PUT -H 'Content-Type: application/json' 'http://saslbucket:saslpass@10.3.2.57:8092/saslbucket/_design/d2' \
-d '{"views": { "v1":{"map":"function(doc){\nemit(doc.key,doc.name);\n}"}, "v2":{"map":"function(doc,meta){\nemit(meta.id,[doc.key_num,doc.key_num]);\n}"} }}'
curl -v -X PUT -H 'Content-Type: application/json' 'http://10.3.2.57:8092/default/_design/d1' \
-d '{"views": { "v1":{"map":"function(doc){nemit(doc.key,doc.key_num);n}
"}, "v2":{"map":"function(doc,meta)
{\nemit(meta.id,doc.key);\n}"} }}'
curl -v -X PUT -H 'Content-Type: application/json' 'http://10.3.2.57:8092/default/_design/d2' \
-d '{"views": { "v1":{"map":"function(doc)
"}, "v2":{"map":"function(doc,meta)
{\nemit(meta.id,[doc.key_num,doc.key_num]);\n}"} }}'
- Allow initial indexing to finish and then remove and rebalance out 1 node.
- While rebalance is in progress, run manual compaction for all design docs/views. In the UI, duplicate entries for the index compaction can be observed.
Diagnostics are attached.