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

dev-views index seems not to be built (at least for _count reduce) during rebalance with consistent view (1DD, 4 views) - build 1868

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-2
    • Fix Version/s: 2.0
    • Component/s: ns_server, view-engine
    • Security Level: Public
    • Environment:

      Description

      i tried the following scenario on the latest build:
      1. Create cluster of 2 nodes. load 1M items, 1K each with cbworkloadgen ./cbworkloadgen -n localhost:8091 -i10000000 -t6 -j -s1000
      2. Create 1DD, with 4 simple views, of which 2 had _count reduce function so i can count all documents on that view.
      3. I built the index and confirmed that the _count views return 1M items, i.e. index was built successfully.
      4. I added 2 more nodes to the cluster and rebalance.
      5. During the rebalance, i refreshed the _count views.
      Expected behavior (with consistent views enabled by default) is that i will get the same 1M items during the reblance
      Observed behavior: the number kept changing, and decreasing over time to 900K, 800K..

      Iryna, can you collect the neccesary logs from this cluster and post it on this bug.
      Cluster can be found at: http://184.169.209.178:8091/ (usual credentials)
      Here are all the IP addresses:
      ns_1@10.176.29.176 10.176.29.176 184.169.209.178 ns_1@10.176.9.41
      ns_1@10.176.9.41 10.176.9.41 50.18.23.114 ns_1@10.176.9.41
      ns_1@10.168.103.76 10.168.103.76 204.236.154.91 ns_1@10.176.9.41
      ns_1@10.176.145.104 10.176.145.104 54.241.117.117 ns_1@10.176.9.41

      I did a few things on this cluster like creating and removing indexes/nodes. so look at the logs at the end.

      1. 10.3.3.104-8091-diag.txt.gz
        743 kB
        Deepkaran Salooja
      2. 10.3.3.106-8091-diag.txt.gz
        505 kB
        Deepkaran Salooja
      3. 10.3.3.107-8091-diag.txt.gz
        500 kB
        Deepkaran Salooja
      4. 10.3.3.95-8091-diag.txt.gz
        994 kB
        Deepkaran Salooja
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        kzeller kzeller added a comment -

        Added to RN as:

        "If you are using development views, be aware you may see
        inconsistent results if you query a development view during rebalance. For production views,
        you are able to query during rebalance and get results consistent with those you would have recieved
        if no rebalance were occurring."

        Show
        kzeller kzeller added a comment - Added to RN as: "If you are using development views, be aware you may see inconsistent results if you query a development view during rebalance. For production views, you are able to query during rebalance and get results consistent with those you would have recieved if no rebalance were occurring."
        Hide
        mccouch MC Brown (Inactive) added a comment -

        Documentation has been updated with this information in both the view types, and auto-update sections of the manual.

        Show
        mccouch MC Brown (Inactive) added a comment - Documentation has been updated with this information in both the view types, and auto-update sections of the manual.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        please note that this behavior is only expected for development views ( full_set = True and partial set ) . It does not apply for production views.

        Show
        farshid Farshid Ghods (Inactive) added a comment - please note that this behavior is only expected for development views ( full_set = True and partial set ) . It does not apply for production views.
        Hide
        steve Steve Yen added a comment -

        Thanks Aliaksey.

        Based on Aliaksey's explanation, marking this non-blocker and for MC to document this non-obvious but "working as designed" behavior for dev-views.

        Show
        steve Steve Yen added a comment - Thanks Aliaksey. Based on Aliaksey's explanation, marking this non-blocker and for MC to document this non-obvious but "working as designed" behavior for dev-views.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        See above

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - See above

          People

          • Assignee:
            mccouch MC Brown (Inactive)
            Reporter:
            sharon Sharon Barr (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes