Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-5687

Querying a view after rebalance returns error 500 reason: error {"error":"error","reason":"revision_sync_failed"}

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.0-beta
    • 2.0-beta
    • view-engine
    • 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.

      Attachments

        1. 10.1.3.227-8091-diag.txt.gz
          51 kB
        2. 10.1.3.67-8091-diag.txt.gz
          9.73 MB
        3. 10.1.3.70-8091-diag.txt.gz
          2.36 MB
        4. 10.1.3.73-8091-diag.txt.gz
          51 kB
        5. execution.log
          62 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            andreibaranouski Andrei Baranouski
            deepkaran.salooja Deepkaran Salooja
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty