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

While 'CREATE PRIMARY INDEX' is executing, 'SELECT * from system:indexes" fails with Panic: runtime error"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • cbq-beta, 4.0.0
    • 4.0.0
    • query
    • Security Level: Public
    • None
    • 6 node cluster: 4 data, 1 Query, 1 indexer (tho i doubt it has to do with the cluster topology.
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      cbq> select * from system:indexes;
      {
      "requestID": "c4bf9f14-29e2-4c16-90df-0a557e5188c8",
      "signature":

      { "*": "*" }

      ,
      "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": "1.024911655s", "executionTime": "1.024737165s", "resultCount": 0, "resultSize": 0, "errorCount": 1 }

      }

      same error if command executed as curl http://172.23.100.21:8093/query/service -d 'statement=select * from system:indexes'

      why this is a problem is that the only way to determine if CREATE PRIMARY has completed is to poll its entry in system:indexes for status 'online' so it becomes very visible, and another thing to workaround

      Attachments

        Issue Links

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

          Activity

            People

              gerald Gerald Sangudi (Inactive)
              thomas Thomas Anderson (Inactive)
              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