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

Seg Fault in N1QL server performing simple query 'SELECT * FROM `bucket-1` LIMIT 10;"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Test Blocker
    • 4.0.0
    • 4.0.0
    • query, secondary-index
    • Security Level: Public
    • None
    • 5 node cluster: 172.23.100.17-20 Data; 172.23.100.20 Query; 172.23.100.22 Index
      20M documents. Primary index created using GSI.
      `bucket-1` does not have authentication defined (no SASL) failure occurs for 350-1380 nd 350-1390
    • Untriaged
    • Centos 64-bit
    • Yes

    Description

      {
      "#operator": "Sequence",
      "~children": [
      {
      "#operator": "Sequence",
      "~children": [

      { "#operator": "PrimaryScan", "index": "#primary", "keyspace": "bucket-1", "namespace": "default", "using": "gsi" }

      ,
      {
      "#operator": "Parallel",
      "~child": {
      "#operator": "Sequence",
      "~children": [

      { "#operator": "Fetch", "keyspace": "bucket-1", "namespace": "default" }

      ,
      {
      "#operator": "InitialProject",
      "result_terms": [

      { "star": true }

      ]
      },

      { "#operator": "FinalProject" }

      ]
      }
      }
      ]
      },

      { "#operator": "Limit", "expr": "1" }

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

      { "elapsedTime": "13.321331ms", "executionTime": "13.115433ms", "resultCount": 1, "resultSize": 1767 }

      }

      on Query Node: query.log shows

      _time=2015-03-02T13:58:23-08:00 _level=ERROR _msg= panic=runtime error: invalid memory address or nil pointer dereference stack=goroutine 14791 [running]:
      github.com/couchbase/query/execution.(*Context).Recover(0xc20def5a40)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/execution/context.go:225 +0xb1
      runtime.panic(0xd857e0, 0x14f0993)
      /usr/local/go/src/pkg/runtime/panic.c:248 +0x18d
      github.com/couchbase/indexing/secondary/queryport/n1ql.vector2ts(0x0, 0x0, 0xed6970)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/indexing/secondary/queryport/n1ql/secondary_index.go:753 +0x10a
      github.com/couchbase/indexing/secondary/queryport/n1ql.(*secondaryIndex).ScanEntries(0xc20b304630, 0x7fffffffffffffff, 0xed6970, 0x9, 0x0, 0x0, 0xc20ae1f520)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/indexing/secondary/queryport/n1ql/secondary_index.go:602 +0xc0
      github.com/couchbase/query/execution.(*PrimaryScan).scanEntries(0xc20f0f7900, 0xc20def5a40, 0xc20ae1f520)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/execution/scan_primary.go:84 +0xe7
      created by github.com/couchbase/query/execution.(*PrimaryScan).scanPrimary
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/execution/scan_primary.go:57 +0x123

      goroutine 14791 [running]:
      github.com/couchbase/query/execution.(*Context).Recover(0xc20def5a40)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/execution/context.go:225 +0xb1
      runtime.panic(0xd857e0, 0x14f0993)
      /usr/local/go/src/pkg/runtime/panic.c:248 +0x18d
      github.com/couchbase/indexing/secondary/queryport/n1ql.vector2ts(0x0, 0x0, 0xed6970)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/indexing/secondary/queryport/n1ql/secondary_index.go:753 +0x10a
      github.com/couchbase/indexing/secondary/queryport/n1ql.(*secondaryIndex).ScanEntries(0xc20b304630, 0x7fffffffffffffff, 0xed6970, 0x9, 0x0, 0x0, 0xc20ae1f520)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/indexing/secondary/queryport/n1ql/secondary_index.go:602 +0xc0
      github.com/couchbase/query/execution.(*PrimaryScan).scanEntries(0xc20f0f7900, 0xc20def5a40, 0xc20ae1f520)
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/execution/scan_primary.go:84 +0xe7
      created by github.com/couchbase/query/execution.(*PrimaryScan).scanPrimary
      /home/couchbase/jenkins/workspace/sherlock-unix/goproj/src/github.com/couchbase/query/execution/scan_primary.go:57 +0x123
      _time=2015-03-02T13:59:15-08:00 _level=INFO _msg=Refreshing pool default
      _time=2015-03-02T13:59:15-08:00 _level=INFO _msg= Checking keyspace bucket-1
      _time=2015-03-02T14:00:15-08:00 _level=INFO _msg=Refreshing pool default
      _time=2015-03-02T14:00:15-08:00 _level=INFO _msg= Checking keyspace bucket-1
      2015/03/02 14:00:19 Warning: Finalizing a bucket with active connections.
      2015/03/02 14:00:19 Warning: Finalizing a bucket with active connections.
      2015/03/02 14:00:19 Warning: Finalizing a bucket with active connections.
      2015/03/02 14:00:19 Warning: Finalizing a bucket with active connections.
      2015/03/02 14:00:19 Warning: Finalizing a bucket with active connections.
      _time=2015-03-02T14:01:15-08:00 _level=INFO _msg=Refreshing pool default
      _time=2015-03-02T14:01:15-08:00 _level=INFO _msg= Checking keyspace bucket-1
      _time=2015-03-02T14:02:04-08:00 _level=INFO _msg=Refreshing Indexes in keyspace bucket-1
      _time=2015-03-02T14:02:04-08:00 _level=INFO _msg=No indexes found for bucket bucket-1
      _time=2015-03-02T14:02:04-08:00 _level=INFO _msg=Authenticating for keyspace bucket-1
      _time=2015-03-02T14:02:04-08:00 _level=INFO _msg= Authenticating for bucket bucket-1 username bucket-1 password
      _time=2015-03-02T14:02:04-08:00 _level=ERROR _msg= panic=runtime error: invalid memory address or nil pointer dereference stack=goroutine 14929 [running]:

      on Index Node indexer.log shows:
      07:55:20.594655 [Info] Indexer::handleCreateIndex
      InstId: 13937320617113465700
      Defn: DefnId: 13937320617113465700 Name: #primary Using: gsi Bucket: bucket-1 IsPrimary: true
      SecExprs: []
      PartitionScheme: SINGLE PartitionKey: WhereExpr:
      State: INDEX_STATE_CREATED
      Stream: INVALID_STREAM
      PartitionContainer: &{map[1:

      {1 [:9105]}

      ] 1}
      07:55:20.608479 [Info] Indexer::initPartnInstance Initialized Partition:
      Index: 13937320617113465700 Partition: PartitionId: 1 Endpoints: [:9105]
      07:55:20.609556 [Info] Indexer::initPartnInstance Initialized Slice:
      Index: 13937320617113465700 Slice: SliceId: 0 File: /data/@2i/bucket-1_#primary_13937320617113465700_0.index Index: 13937320617113465700
      07:55:20.609675 [Info] MutationMgr::handleUpdateIndexInstMap
      Message: MsgUpdateInstMap
      InstanceId: 13937320617113465700 Name: #primary Bucket: bucket-1 State: INDEX_STATE_CREATED Stream: INVALID_STREAM
      07:55:20.609715 [Info] MutationMgr::handleUpdateIndexPartnMap
      Message: MsgUpdatePartnMap
      InstanceId: 13937320617113465700 PartitionId: 0 Endpoints: [:9105]
      07:55:20.618248 [Info] Indexer::handleBuildIndex [13937320617113465700]
      07:55:20.647568 [Info] MutationMgr::handleUpdateIndexInstMap
      Message: MsgUpdateInstMap
      InstanceId: 13937320617113465700 Name: #primary Bucket: bucket-1 State: INDEX_STATE_INITIAL Stream: MAINT_STREAM
      07:55:20.647651 [Warn] StreamState::setHWTFromRestartTs
      RestartTs Not Found For Bucket bucket-1 StreamId MAINT_STREAM. No Value Set.
      07:55:20.648073 [Info] MutationMgr::handleOpenStream
      Message: MsgStreamUpdate
      Type: OPEN_STREAM
      Stream: MAINT_STREAM

      Attachments

        Issue Links

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

          Activity

            People

              keshav Keshav Murthy
              thomas Thomas Anderson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty