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

panic in array_intersect()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Neo, 7.0.2
    • Fix Version/s: Neo
    • Component/s: query
    • Labels:
      None
    • Triage:
      Untriaged
    • Story Points:
      1
    • Is this a Regression?:
      Unknown

      Description

      insert into default (key,value) values("k01",{"type":"SUPPORTAL::snapshot","nodes":[{"results":{"checker_list":["Data Quota"]}},{"results":{}}]});
      select ARRAY_INTERSECT(ARRAY n.results.checker_list FOR n IN nodes END, ["Data Quota"]) FROM default;
      {
          "requestID": "555418be-7395-40c3-80c9-7f3601bae3a7",
          "signature": {
              "$1": "array"
          },
          "results": [
          ],
          "errors": [
              {
                  "code": 5001,
                  "msg": "Panic: runtime error: hash of unhashable type value.sliceValue"
              }
          ],
          "status": "aborted",
          "metrics": {
              "elapsedTime": "3.573357ms",
              "executionTime": "3.429985ms",
              "resultCount": 0,
              "resultSize": 0,
              "serviceLoad": 3,
              "errorCount": 1
          }
      }
       
      panic(0x215f8c0, 0xc000363070)
              /home/couchbase/.cbdepscache/exploded/x86_64/go-1.16.6/go/src/runtime/panic.go:971 +0x499
      github.com/couchbase/query/expression.(*ArrayIntersect).Evaluate(0xc001978420, 0x26b0870, 0xc0016f57a0, 0x26a64d0, 0xc00037ec80, 0x0, 0x0, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/expression/func_array.go:1044 +0x565
      github.com/couchbase/query/execution.(*InitialProject).processTerms(0xc001817b00, 0x26f0200, 0xc0016f57a0, 0xc00037ec80, 0xc001817bc8)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/project_initial.go:154 +0x2b5
      github.com/couchbase/query/execution.(*InitialProject).processItem(0xc001817b00, 0x26f0200, 0xc0016f57a0, 0xc00037ec80, 0xc0016f57a0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/project_initial.go:134 +0x613
      github.com/couchbase/query/execution.(*base).runConsumer.func1()
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/base.go:915 +0x2d5
      github.com/couchbase/query/util.(*Once).Do(0xc001817c38, 0xc001083f00)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/util/sync.go:55 +0x4b
      github.com/couchbase/query/execution.(*base).runConsumer(0xc001817b00, 0x268a358, 0xc001817b00, 0xc00037ec80, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/base.go:857 +0xa5
      github.com/couchbase/query/execution.(*InitialProject).RunOnce(0xc001817b00, 0xc00037ec80, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/project_initial.go:58 +0x5c
      github.com/couchbase/query/execution.execOp(0x26b5728, 0xc001817b00, 0xc00037ec80, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/base.go:522 +0x57
      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:533 +0x105
      goroutine 25741 [running]:
      
      

        Attachments

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

          Activity

          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-7.1.0-1295 contains query commit 44c93e8 with commit message:
          MB-48187 Fix panic in array_intersect.

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1295 contains query commit 44c93e8 with commit message: MB-48187 Fix panic in array_intersect.

            People

            Assignee:
            Donald.haggart Donald Haggart
            Reporter:
            Sitaram.Vemulapalli Sitaram Vemulapalli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty