Details
Description
can be reproduced by test:
./testrunner -i resources/jenkins/centos-64-7node-viewquery.ini get-logs=True -t viewquerytests.ViewQueryTests.test_employee_dataset_startkey_endkey_queries_rebalance_incrementaly,skip_rebalance=true
Steps to reproduce:
1. Load data and query simultaneously, data is loaded
2. Start rebalance in 1->2 nodes and run query, wait for rebalance
3. Start rebalance in 2->3 nodes and run query, wait for rebalance
error appears
Structure:
test_view-29c4109:
{"views":{"test_view-29c4109":{"map":"function (doc) { if(doc.job_title !== undefined) { var myregexp = new RegExp(\"^UI \"); if(doc.job_title.match(myregexp))
test_view-2bfb174:
{"views":{"test_view-2bfb174":{"map":"function (doc) { if(doc.job_title !== undefined) emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] ); }"}}}
test_view-7a8ca26:
{"views":{"test_view-7a8ca26":{"map":"function (doc, meta) { if(doc.job_title !== undefined) { var myregexp = new RegExp(\"^admin\"); if(meta.id.match(myregexp)) { emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] );}
}}"}}}
test_view-933b01c:
{"views":{"test_view-933b01c":{"map":"function (doc) { if(doc.job_title !== undefined) { var myregexp = new RegExp(\"^System \"); if(doc.job_title.match(myregexp))
test_view-bc386e3:
{"views":{"test_view-bc386e3":{"map":"function (doc) { if(doc.job_title !== undefined) emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] ); }","reduce":"_count"}}}
test_view-c5093dd:
{"views":{"test_view-c5093dd":{"map":"function (doc) { if(doc.job_title !== undefined) { var myregexp = new RegExp(\"^Senior \"); if(doc.job_title.match(myregexp)){ emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] );}
}}"}}}
Exact query example is:
iryna@ubuntu:~/couchbase/testrunner$ curl -v 'http://10.2.2.108:8092/default/_design/test_view-2bfb174/_view/test_view-2bfb174?end_key=%5B2008%2C1%2C1%5D&descending=true&inclusive_end=false&debug=true&start_key=%5B2008%2C7%2C1%5D&connection_timeout=60000'
- About to connect() to 10.2.2.108 port 8092 (#0)
- Trying 10.2.2.108...
- connected
- Connected to 10.2.2.108 (10.2.2.108) port 8092 (#0)
> GET /default/_design/test_view-2bfb174/_view/test_view-2bfb174?end_key=%5B2008%2C1%2C1%5D&descending=true&inclusive_end=false&debug=true&start_key=%5B2008%2C7%2C1%5D&connection_timeout=60000 HTTP/1.1
> User-Agent: curl/7.26.0
> Host: 10.2.2.108:8092
> Accept: /
>
< HTTP/1.1 500 Internal Server Error
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< Date: Thu, 23 Aug 2012 01:53:00 GMT
< Content-Type: text/plain;charset=utf-8
< Content-Length: 48
< Cache-Control: must-revalidate
< {"error":"error","reason":"inconsistent_state"} - Connection #0 to host 10.2.2.108 left intact
- Closing connection #0
any other query is failed too:
iryna@ubuntu:~/couchbase/testrunner$ curl -v 'http://10.2.2.108:8092/default/_design/test_view-2bfb174/_view/test_view-2bfb174?'* About to connect() to 10.2.2.108 port 8092 (#0)
- Trying 10.2.2.108...
- connected
- Connected to 10.2.2.108 (10.2.2.108) port 8092 (#0)
> GET /default/_design/test_view-2bfb174/_view/test_view-2bfb174? HTTP/1.1
> User-Agent: curl/7.26.0
> Host: 10.2.2.108:8092
> Accept: /
>
< HTTP/1.1 500 Internal Server Error
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< Date: Thu, 23 Aug 2012 02:04:28 GMT
< Content-Type: text/plain;charset=utf-8
< Content-Length: 48
< Cache-Control: must-revalidate
< {"error":"error","reason":"inconsistent_state"} - Connection #0 to host 10.2.2.108 left intact
- Closing connection #0
Data item looks like:
{ "name": "employee-70-b8ebdb0", "join_day": 27, "join_mo": 10, "join_yr": 2008, "job_title": "System Administrator and heliport manager", "type": "admin", "email": "70@couchbase.com", "desc": "...Last but not least, as the heliport manager, you will help maintain our growing fleet of remote controlled helicopters, that crash often due to inexperienced pilots. As an independent thinker, you may be free to replace some of the technologies we currently use with ones you feel are better. If so, you should be prepared to discuss and debate the pros and cons of suggested technologies with other stakeholders" }