[MB-4804] querying views when new nodes are added and not rebalanced in yet and another node is failed over - Viewquery failing due to {"error":"error","reason":"A view spec can not consist of merges exclusively."} Created: 14/Feb/12  Updated: 09/Jan/13  Resolved: 22/Feb/12

Status: Closed
Project: Couchbase Server
Component/s: ns_server
Affects Version/s: 2.0
Fix Version/s: 2.0-developer-preview-4
Security Level: Public

Type: Bug Priority: Blocker
Reporter: Karan Kumar (Inactive) Assignee: Aliaksey Artamonau
Resolution: Fixed Votes: 0
Labels: 2.0-dev-preview-4-release-notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Ubuntu 10.04 64 bit

Attachments: Zip Archive 10.1.2.131-8091-diag.txt.zip     Zip Archive 10.1.2.132-8091-diag.txt.zip     Zip Archive 10.1.2.133-8091-diag.txt.zip     Zip Archive 10.1.2.134-8091-diag.txt.zip     Zip Archive 10.1.2.94-8091-diag.txt.zip    

 Description   
Running the following test

This test, will keep running load and keep quering the 20 design docs in parallel.
viewtests.ViewBasicTests.test_load_data_get_view_x_mins_y_design_docs,num-design-docs=24,load-time=3,run-view-time=1


This is not an intermittent error.

During the tests, we also performed.
1) Some views were deleted
2) Nodes were failed over
3) New nodes were rebalanced into the cluster.

{"_id":"_design/dev_test_view_on_10000_docs-dd0170e","_rev":"1-39c21665","language":"javascript","views":{"dev_test_view_on_10000_docs-dd0170e":{"map":"function (doc) {if(doc.name.indexOf(\"dev_test_view_on_10000_docs-dd0170e\") != -1) { emit(doc.name, doc);}}"}}}


 Comments   
Comment by Karan Kumar (Inactive) [ 14/Feb/12 ]
View query:-

http://10.1.2.94:8091/couchBase/default/_design/dev_test_view_on_10000_docs-b363c97/_view/dev_test_view_on_10000_docs-b363c97?limit=10000&connection_timeout=60000&full_set=true error 500 reason: error {"error":"error","reason":"A view spec can not consist of merges exclusively."}
Comment by Karan Kumar (Inactive) [ 14/Feb/12 ]
Build. 2.0.0r-665
Comment by Aleksey Kondratenko [ 14/Feb/12 ]
this needs investigation on ns_server side. Query node likely does not have any vbuckets.
Comment by Farshid Ghods (Inactive) [ 14/Feb/12 ]
the fix needs to be merged to dp4 branch
Comment by Filipe Manana (Inactive) [ 15/Feb/12 ]
Add ns_server to component list.
Comment by Aliaksey Artamonau [ 22/Feb/12 ]
http://review.couchbase.org/13407
Generated at Wed Nov 26 03:14:12 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.