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

union all query panic: runtime error: slice bounds out of range [:4098] with capacity 4096

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      During the UI bug hunt I was running some union all query via the Query Workbench and canceling it. I noticed the following stack in query.log:

      _time=2021-01-29T01:13:13.423+00:00 _level=SEVERE _msg=panic: runtime error: slice bounds out of range [:4098] with capacity 4096
      _time=2021-01-29T01:13:13.423+00:00 _level=SEVERE _msg=request text: <ud>select h.city, h.name, a.airportname from `travel-sample`.inventory.airport a join `travel-sample`.inventory.hotel h on (a.city = h.city)
      union all
      select h.city, h.name, a.airportname from `travel-sample`.inventory.airport a join `travel-sample`.inventory.hotel h on (a.city = h.city)</ud>
      _time=2021-01-29T01:13:13.423+00:00 _level=SEVERE _msg=query context: <ud></ud>
      _time=2021-01-29T01:13:13.423+00:00 _level=SEVERE _msg=stack: goroutine 324606 [running]:
      github.com/couchbase/query/execution.(*Context).Recover(0xc003e4a780, 0xc003834b40)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/context.go:916 +0xc4
      github.com/couchbase/query/execution.(*base).runConsumer.func1()
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/base.go:844 +0x46d
      github.com/couchbase/query/util.(*Once).Do(0xc003834c78, 0xc000f0bf00)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/util/sync.go:57 +0x4a
      github.com/couchbase/query/execution.(*base).runConsumer(0xc003834b40, 0x27c5620, 0xc003834b40, 0xc003e4a780, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/base.go:817 +0xa2
      github.com/couchbase/query/execution.(*InitialProject).RunOnce(0xc003834b40, 0xc003e4a780, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/project_initial.go:59 +0x5c
      github.com/couchbase/query/execution.execOp(0x27fd340, 0xc003834b40, 0xc003e4a780, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/base.go:495 +0x54
      created by github.com/couchbase/query/execution.(*base).fork
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/base.go:505 +0xfa 

      Not sure I can repro this issue though. The query to run is:

      select h.city, h.name, a.airportname from `travel-sample`.inventory.airport a join `travel-sample`.inventory.hotel h on (a.city = h.city)
      union all
      select h.city, h.name, a.airportname from `travel-sample`.inventory.airport a join `travel-sample`.inventory.hotel h on (a.city = h.city)

       

      Note: I also opened defect MB-43957 for the UI as i could not effectively cancel the query

       

      Attachments

        1. query.log
          689 kB
        2. query-4353.log
          866 kB

        Issue Links

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

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              pierre.regazzoni Pierre Regazzoni
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty