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

CB community version: Not able to create indexes due to n1ql segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 7.6.0
    • 7.6.0
    • query
    • Untriaged
    • 0
    • Unknown

    Description

      Build - 7.6.0-1786

      Cluster kv:n1ql:index -> node 1

      While running create index queries the following error is seen in the logs
      Sample query ->

      CREATE INDEX `idx_Q65JY7CKCR_batch_1_free_breakfast_avg_rating_6` ON default:b1(free_breakfast,avg_rating) USING GSI  WITH {'defer_build': False}; 

      Errors->

      Service 'n1ql' exited with status 2. Restarting. Messages:
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0xa7e174]
       
      goroutine 291 [running]:
      github.com/couchbase/query/datastore.getSystemCollectonIndexConnection({0x0, 0x0})
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/datastore/datastore.go:833 +0x24
      github.com/couchbase/query/datastore.ScanSystemCollection({0x4000636058?, 0x1500000000?}, {0x0, 0x0}, 0x0, 0x400083df50, 0x400083df08)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/datastore/datastore.go:896 +0x58
      github.com/couchbase/query/datastore/couchbase.cleanupSystemCollection({0x1c3fd65, 0x7}, {0x4000636058, 0x2})
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/datastore/couchbase/couchbase.go:3127 +0x140
      created by github.com/couchbase/query/datastore/couchbase.(*namespace).keyspaceByName in goroutine 271
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/datastore/couchbase/couchbase.go:1326 +0x534 

      Logs->

      https://cb-engineering.s3.amazonaws.com/yash-test/collectinfo-2023-11-09T053246-ns_1%40127.0.0.1.zip

      CC Hemant Rajput 

      Attachments

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

        Activity

          People

            yash.dodderi Yash Dodderi
            yash.dodderi Yash Dodderi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty