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

rebalance hangs: 1 ddoc with 2 spatial views

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: ns_server, view-engine
    • Security Level: Public
    • Labels:
      None
    • Environment:

      Description

      1 bucket/ 10 items/1 ddoc with 2 spatial views
      views have the same map function: function (doc)

      {emit(doc.geometry, doc.age);}

      2 nodes cluster, remove one node and rebalance

      ERROR: bad JSON configuration from http://127.0.0.1:8091/pools/default/saslBucketsStreaming: Number of vBuckets must be a power of two > 0 and <= 65536 ({
      moxi<0.28577.88>: "name": "default",
      moxi<0.28577.88>: "nodeLocator": "vbucket",
      moxi<0.28577.88>: "saslPassword": "",
      moxi<0.28577.88>: "nodes": [{
      moxi<0.28577.88>: "hostname": "10.3.121.105:8091",
      moxi<0.28577.88>: "ports":

      { moxi<0.28577.88>: "direct": 11210, moxi<0.28577.88>: "proxy": 11211 moxi<0.28577.88>: }

      moxi<0.28577.88>: }],
      moxi<0.28577.88>: "vBucketServerMap":

      { moxi<0.28577.88>: "hashAlgorithm": "CRC", moxi<0.28577.88>: "numReplicas": 1, moxi<0.28577.88>: "serverList": ["10.3.121.105:11210"], moxi<0.28577.88>: "vBucketMap": [] moxi<0.28577.88>: }

      moxi<0.28577.88>: })

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        FilipeManana Filipe Manana (Inactive) added a comment -

        In fact no couch_set_view calls against non-mapreduce design documents should be made. However I understand it might be inconvenient/not simple for ns_server to figure that out.

        Added a change to gerrit [1] that raises an error when attempting to operate on a design document without mapreduce views via couch_set_view. It prevents creating empty files and useless processes.

        Can you tell me if you can catch/ignore these exceptions in all that code in capi_set_view_manager (etc) ?

        thanks

        [1] - http://review.couchbase.org/#/c/24032/

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - In fact no couch_set_view calls against non-mapreduce design documents should be made. However I understand it might be inconvenient/not simple for ns_server to figure that out. Added a change to gerrit [1] that raises an error when attempting to operate on a design document without mapreduce views via couch_set_view. It prevents creating empty files and useless processes. Can you tell me if you can catch/ignore these exceptions in all that code in capi_set_view_manager (etc) ? thanks [1] - http://review.couchbase.org/#/c/24032/
        Hide
        Aliaksey Artamonau Aliaksey Artamonau added a comment -

        Filipe's patch supposedly fixes this.

        Show
        Aliaksey Artamonau Aliaksey Artamonau added a comment - Filipe's patch supposedly fixes this.
        Hide
        FilipeManana Filipe Manana (Inactive) added a comment -

        Yes, the testrunner test now passes with it.
        This will have to be revised later, when spatial views are b-superstar compliant, and maybe ns_server might still need to be able to distinguish between mapreduce and spatial design documents.

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - Yes, the testrunner test now passes with it. This will have to be revised later, when spatial views are b-superstar compliant, and maybe ns_server might still need to be able to distinguish between mapreduce and spatial design documents.
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-couchdb-preview #554 (See http://qa.hq.northscale.net/job/github-couchdb-preview/554/)
        MB-7396 Don't open view groups without views (Revision 43660ddfa54ec8556509776c82a9aaa46b04b2d6)

        Result = SUCCESS
        Filipe David Borba Manana :
        Files :

        • src/couch_set_view/src/couch_set_view.erl
        • src/couch_set_view/src/couch_set_view_group.erl
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-couchdb-preview #554 (See http://qa.hq.northscale.net/job/github-couchdb-preview/554/ ) MB-7396 Don't open view groups without views (Revision 43660ddfa54ec8556509776c82a9aaa46b04b2d6) Result = SUCCESS Filipe David Borba Manana : Files : src/couch_set_view/src/couch_set_view.erl src/couch_set_view/src/couch_set_view_group.erl
        Hide
        FilipeManana Filipe Manana (Inactive) added a comment -

        Merged to 2.0.1 and master.

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - Merged to 2.0.1 and master.

          People

          • Assignee:
            FilipeManana Filipe Manana (Inactive)
            Reporter:
            iryna iryna
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes