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

gsi: if n1ql is started in one node and data service on another 'nil pointer dereference' error appears for selects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 4.0.0
    • 4.0.0
    • query, secondary-index
    • Security Level: Public
    • None
    • 3.5.0-1402

    Description

      cluster configuration:
      3 nodes, 1 has n1ql\data\index services
      1 has data\index
      1 has n1ql only service. From it run queries
      [root@kiwi-r104 ~]# curl -X POST -d "statement=create primary index on default using gsi" http://172.27.33.45:8093/query
      {
      "requestID": "abdfe043-2eff-4e4f-ab51-8ff060aaf996",
      "signature": null,
      "results": [
      ],
      "status": "success",
      "metrics":

      { "elapsedTime": "244.144509ms", "executionTime": "242.64468ms", "resultCount": 0, "resultSize": 0 }

      }
      [root@kiwi-r104 ~]# curl -X POST -d "statement=select count(name) from default" http://172.27.33.45:8093/query{
      "requestID": "186e60e1-c5e6-4da7-a3e0-7161e0b6a56d",
      "signature":

      { "$1": "number" }

      ,
      "results": [
      ],
      "errors": [

      { "code": 5000, "msg": "Panic: runtime error: invalid memory address or nil pointer dereference - cause: runtime error: invalid memory address or nil pointer dereference" }

      ],
      "status": "stopped",
      "metrics":

      { "elapsedTime": "60.683628ms", "executionTime": "60.118393ms", "resultCount": 0, "resultSize": 0, "errorCount": 1 }

      }
      [root@kiwi-r104 ~]#
      [root@kiwi-r104 ~]# curl -X POST -d "statement=select * from system:indexes" http://172.27.33.45:8093/query
      {
      "requestID": "bfe0abc8-43c1-4550-94d7-a96978b8301f",
      "signature":

      { "*": "*" }

      ,
      "results": [
      {
      "indexes":

      { "datastore_id": "http://127.0.0.1:8091", "id": "d4b41e2f552531df", "index_key": [], "keyspace_id": "default", "name": "#primary", "namespace_id": "default", "state": "online", "using": "gsi" }

      }
      ],
      "status": "success",
      "metrics":

      { "elapsedTime": "423.490275ms", "executionTime": "423.305174ms", "resultCount": 1, "resultSize": 369 }

      }
      [root@kiwi-r104 ~]#

      same operation with primary views works ok

      cbcollect will be attached

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-13687
          # Subject Branch Project Status CR V

          Activity

            People

              prataprc Pratap Chakravarthy (Inactive)
              iryna iryna
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty