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

[System Test] Panic "runtime error: index out of range [129] with length 129" in query logs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • query
    • Enterprise Edition 7.1.0 build 1849

    Description

      Test -

      -test tests/eventing/neo/test_eventing_rebalance_rbac.yml -scope tests/eventing/neo/scope_eventing_rebalance.yml
      

      Day - 1
      Cycle - 1
      Scale - 3

      On 172.23.97.83
      ns_server.query.log

      2021/12/06 20:44:28 http: panic serving 172.23.104.23:40030: runtime error: index out of range [129] with length 129
      goroutine 8997687 [running]:
      net/http.(*conn).serve.func1(0xc0001c08c0)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.16.6/go/src/net/http/server.go:1804 +0x153
      panic(0x2438980, 0xc0018236c8)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.16.6/go/src/runtime/panic.go:971 +0x499
      github.com/couchbase/query/accounting/metrics.(*ExpDecaySample).UpdateWithTimestamp(0xc0001678c0, 0xc063d78b14c7916b, 0x3463381dbab, 0x3a298e0, 0xfd3c9)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/accounting/metrics/sample.go:304 +0x71d
      github.com/couchbase/query/accounting/metrics.(*ExpDecaySample).Update(0xc0001678c0, 0xfd3c9)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/accounting/metrics/sample.go:234 +0x5a
      github.com/couchbase/query/accounting/metrics.(*StandardHistogram).Update(0xc0001bfad0, 0xfd3c9)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/accounting/metrics/histogram.go:90 +0x3d
      github.com/couchbase/query/accounting/metrics.(*StandardTimer).Update(0xc0004222a0, 0xfd3c9)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/accounting/metrics/timer.go:133 +0x3d
      github.com/couchbase/query/accounting.RecordMetrics(0xfd3c9, 0xf5f17, 0x0, 0x0, 0x0, 0x0, 0x0, 0x25e15b0, 0x6, 0xc0027c0000, ...)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/accounting/accounting.go:356 +0x36e
      github.com/couchbase/query/server/http.(*HttpEndpoint).doStats(0xc000712000, 0xc000df2000, 0xc0006de200)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/server/http/service_endpoint.go:665 +0x1cb
      github.com/couchbase/query/server/http.(*HttpEndpoint).ServeHTTP(0xc000712000, 0x2847a00, 0xc0027b09a0, 0xc002be3400)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/server/http/service_endpoint.go:447 +0x334
      github.com/gorilla/mux.(*Router).ServeHTTP(0xc000600240, 0x2847a00, 0xc0027b09a0, 0xc002be3200)
      	/home/couchbase/.cbdepscache/gomodcache/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 +0xd3
      net/http.serverHandler.ServeHTTP(0xc000b5c000, 0x2847a00, 0xc0027b09a0, 0xc002be3200)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.16.6/go/src/net/http/server.go:2867 +0xa3
      net/http.(*conn).serve(0xc0001c08c0, 0x2853660, 0xc0001fd440)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.16.6/go/src/net/http/server.go:1932 +0x8cd
      created by net/http.(*Server).Serve
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.16.6/go/src/net/http/server.go:2993 +0x39b
      

      NOTE
      Regression due to https://review.couchbase.org/c/query/+/167048.

      Attachments

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

        Activity

          People

            sujay.gad Sujay Gad
            sujay.gad Sujay Gad
            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