Details
-
Bug
-
Resolution: Fixed
-
Critical
-
Cheshire-Cat
-
Untriaged
-
-
1
-
Unknown
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
For Gerrit Dashboard: MB-39839 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
132475,8 | MB-39839 Address query panic due to empty hostname | master | query | Status: MERGED | +2 | +1 |
133212,6 | MB-39839 For panic | master | query-ee | Status: MERGED | +2 | +1 |
133851,2 | MB-40759 Initialize dictionary cache before accepting requests | master | query | Status: MERGED | +2 | +1 |