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

[IPv6] Query service crashing upon node initialization

    XMLWordPrintable

Details

    Description

      Build : 7.0.0-2278

      Steps to Reproduce :
      1. Setup 1 node cluster with data, index and n1ql services with ipv6 enabled.
      2. Check the query logs after successful initialization. There are be panic msgs in the query logs like the following -

      _time=2020-06-09T09:18:10.160-07:00 _level=INFO _msg= Initialization of cbauth succeeded
      _time=2020-06-09T09:18:10.161-07:00 _level=INFO _msg=New store created with url http://[::1]:8091
      _time=2020-06-09T09:18:10.161-07:00 _level=INFO _msg=pollEOF: About to start stdin polling
      panic: runtime error: index out of range [0] with length 0
       
      goroutine 1 [running]:
      github.com/couchbase/query/server.HostNameandPort(0x0, 0x0, 0xc000127680, 0x0, 0x0, 0x22312c6)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/server/server.go:1007 +0x1d4
      github.com/couchbase/query/clustering/couchbase.(*cbConfigStore).doNameState(0xc0002b20a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/clustering/couchbase/clustering_cb.go:415 +0x469
      github.com/couchbase/query/clustering/couchbase.(*cbConfigStore).State(0xc0002b20a0, 0xc000457300, 0x0, 0xc000748800, 0xc00074bc00)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/clustering/couchbase/clustering_cb.go:275 +0x2b
      github.com/couchbase/query/server/http.(*systemRemoteHttp).WhoAmI(0xc000105140, 0x10a21d2, 0x1f41760)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/server/http/system_remote.go:544 +0x88
      github.com/couchbase/query-ee/dictionary.dictMetaKVInit()
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query-ee/dictionary/metakv.go:38 +0x39
      github.com/couchbase/query-ee/dictionary.DictionaryCacheInit(0x4000)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query-ee/dictionary/dictionary_cache.go:38 +0x4a
      github.com/couchbase/query/server.InitDictionaryCache(...)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/server/dictionary_ee.go:19
      main.main()
              goproj/src/github.com/couchbase/query/server/cbq-engine/main.go:237 +0x50a
      _time=2020-06-09T09:18:15.235-07:00 _level=INFO _msg= Initialization of cbauth succeeded
      _time=2020-06-09T09:18:15.238-07:00 _level=INFO _msg=New store created with url http://[::1]:8091
      _time=2020-06-09T09:18:15.238-07:00 _level=INFO _msg=pollEOF: About to start stdin polling
      

      A similar query crash was also seen with the same steps in 7.0.0-2017 & 7.0.0-2208, but only once. Here in 7.0.0-2278, we see this happening 12 times. Not sure if something has regressed since 7.0.0-2017 or 7.0.0-2208.

      Attachments

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

        Activity

          People

            isha Isha Kandaswamy (Inactive)
            mihir.kamdar Mihir Kamdar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty