Details
-
Bug
-
Resolution: Fixed
-
Critical
-
2.0-beta
-
Security Level: Public
-
None
-
4 node cluster on ubuntu Linux with build version 2.0.0-1362-rel
Description
Querying a view with stale=false after rebalance returns error
Below test is first adding a node to the cluster with 1000 json docs and doing rebalancein +create view in parallel. Then its querying the view with stale=false. Running the test twice gives the below error in view query in the second test:
[rest_client:497] ERROR - http://10.1.3.67:8091/couchBase/default/_design/dev_ddoc0/_view/View0?stale=false error 500 reason: error
{"error":"error","reason":"revision_sync_failed"}The test code is available in gerrit in pytests/view/createdeleteview.py (git pull ssh://deepkaran@review.couchbase.org:29418/testrunner refs/changes/36/17536/3)
Test to be run:
./testrunner -i b/resources/dev-4-nodes.ini -t view.createdeleteview.CreateDeleteViewTests.rebalance_in_with_ddoc_ops,ddoc_ops=create,test_with_view=True,nodes_in=1,num_ddocs=1,num_views_per_ddoc=2
and then again
./testrunner -i b/resources/dev-4-nodes.ini -t view.createdeleteview.CreateDeleteViewTests.rebalance_in_with_ddoc_ops,ddoc_ops=create,test_with_view=True,nodes_in=1,num_ddocs=1,num_views_per_ddoc=2
Environment - 4 node cluster on ubuntu Linux with build version 2.0.0-1362-rel
Diagnostics are attached.