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

querying for views during rebalancing through node's REST api before it has any active vbucket return ""error":"no_active_vbuckets"

    Details

      Description

      test
      -t viewquerytests.ViewQueryTests.test_employee_dataset_startkey_endkey_queries_rebalance_incrementaly,skip_rebalance=true

      steps to repro:
      1. load data
      2. start rebalance 1->2
      3. wait some time, (in my case rebalance is going on 15 mins) try to see documents or query view from node which is adding to cluster
      no_active_vbuckets error appears
      iryna@ubuntu:~/couchbase/testrunner$ curl -v 'http://10.3.121.105:8092/default/_design/test_view-df0f1d8/_view/test_view-df0f1d8?debug=true&start_key=%5B2008%2C7%2Cnull%5D&connection_timeout=60000'

      • About to connect() to 10.3.121.105 port 8092 (#0)
      • Trying 10.3.121.105...
      • connected
      • Connected to 10.3.121.105 (10.3.121.105) port 8092 (#0)
        > GET /default/_design/test_view-df0f1d8/_view/test_view-df0f1d8?debug=true&start_key=%5B2008%2C7%2Cnull%5D&connection_timeout=60000 HTTP/1.1
        > User-Agent: curl/7.26.0
        > Host: 10.3.121.105:8092
        > Accept: /
        >
        < HTTP/1.1 404 Object Not Found
        < Server: MochiWeb/1.0 (Any of you quaids got a smint?)
        < Date: Wed, 12 Sep 2012 22:07:23 GMT
        < Content-Type: text/plain;charset=utf-8
        < Content-Length: 106
        < Cache-Control: must-revalidate
        < {"error":"no_active_vbuckets","reason":"Cannot execute view query since the node has no active vbuckets"}
      • Connection #0 to host 10.3.121.105 left intact
      • Closing connection #0
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        merged fix

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - merged fix
        Hide
        kzeller kzeller added a comment -

        Add to beta release notes as : If a cluster is being rebalanced, and a node does not yet have any active
        vBuckets, you will receive the error
        <literal>"error":"no_active_vbuckets"</literal> when you query a view
        via the REST API.

        Show
        kzeller kzeller added a comment - Add to beta release notes as : If a cluster is being rebalanced, and a node does not yet have any active vBuckets, you will receive the error <literal>"error":"no_active_vbuckets"</literal> when you query a view via the REST API.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Some fix is coming. But now I understand there's another cause of this. I think enabling consistent views will fix other and potentially more prolonged it time cause.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Some fix is coming. But now I understand there's another cause of this. I think enabling consistent views will fix other and potentially more prolonged it time cause.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        moving this to beta refresh so once beta is shipped we will merge it

        Show
        farshid Farshid Ghods (Inactive) added a comment - moving this to beta refresh so once beta is shipped we will merge it
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        BTW this is not AFAIK a regression. Do you want me to fix this ASAP?

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - BTW this is not AFAIK a regression. Do you want me to fix this ASAP?

          People

          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            Reporter:
            iryna iryna
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes