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

panic during update statistics of nested array index

    XMLWordPrintable

    Details

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

      Description

      UPSERT INTO default VALUES ("book1", { "type":"book", "author": "James", "rev": 2, "year": 2020, "name": "book 1", "description": "book 1 description", "isbn": 1, "chapters": [ {"num": 1, "name": "chapter 1", "description": "chapter 1 description", "pages" : [ { "num":1, "name":"page 1", "description": "page 1 description"}, { "num":2, "name":"page 2", "description": "page 2 description"} ]}]});
      CREATE INDEX ixf20 ON default(isbn, author, DISTINCT ARRAY (DISTINCT ARRAY pg.num FOR pg IN ch.pages END) FOR ch IN chapters END, year, name) WHERE type = "book";
      update statistics default index (ixf20);
      

      panic: runtime error: comparing uncomparable type value.sliceValue
       
      goroutine 434 [running]:
      github.com/couchbase/query-ee/histogram.genHistogram(0xc003fdc5d0, 0x21, 0x26927a8, 0xc000b29b30, 0x1, 0x1, 0x3ff0000000000000, 0x0, 0x0, 0xc003e8b910, ...)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query-ee/histogram/histogram.go:362 +0xe65
      github.com/couchbase/query-ee/histogram.GetHistogram(0xc003fdc5d0, 0x21, 0x26927a8, 0xc0003c1ea0, 0x1, 0x1, 0x3ff0000000000000, 0x0, 0x0, 0xc003e8b910, ...)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query-ee/histogram/histogram.go:546 +0x11f
      github.com/couchbase/query-ee/updstat.doUpdateStatistics(0x2682bb0, 0xc000b81380, 0x263ada0, 0xc0040f4240, 0xc003e27560, 0x6, 0x6, 0x0, 0x1, 0xc000fcbab8, ...)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query-ee/updstat/upd_statistics.go:451 +0x1317
      github.com/couchbase/query-ee/updstat.(*DefaultStatUpdater).UpdateStatistics(0xc000080fd0, 0x2682bb0, 0xc000b81380, 0xc000c1e450, 0x1, 0x1, 0xc003e27560, 0x6, 0x6, 0x0, ...)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query-ee/updstat/upd_statistics.go:291 +0x88e
      created by github.com/couchbase/query/execution.(*UpdateStatistics).RunOnce.func1
              /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/execution/update_stat.go:87 +0x365
      

        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.0.1-6000 contains query-ee commit 3100f8d with commit message:
          MB-47823 Handled nested array key in UPDATE STATISTICS

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.1-6000 contains query-ee commit 3100f8d with commit message: MB-47823 Handled nested array key in UPDATE STATISTICS
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-7.1.0-1128 contains query-ee commit bd78fe4 with commit message:
          MB-47823 Handled nested array key in UPDATE STATISTICS

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1128 contains query-ee commit bd78fe4 with commit message: MB-47823 Handled nested array key in UPDATE STATISTICS
          Hide
          pierre.regazzoni Pierre Regazzoni added a comment -

          Verified on 7.0.2-6535 and 7.1.0-1128

          cbq> update statistics default index (ixf20);
          {
              "requestID": "325de788-7c81-4cd2-87a2-f53f32c0b094",
              "signature": null,
              "results": [
              ],
              "status": "success",
              "metrics": {
                  "elapsedTime": "6.395346884s",
                  "executionTime": "6.395145139s",
                  "resultCount": 0,
                  "resultSize": 0,
                  "serviceLoad": 6
              }
          } 

          Show
          pierre.regazzoni Pierre Regazzoni added a comment - Verified on 7.0.2-6535 and 7.1.0-1128 cbq> update statistics default index (ixf20); {     "requestID" : "325de788-7c81-4cd2-87a2-f53f32c0b094" ,     "signature" : null ,     "results" : [     ],     "status" : "success" ,     "metrics" : {         "elapsedTime" : "6.395346884s" ,         "executionTime" : "6.395145139s" ,         "resultCount" : 0 ,         "resultSize" : 0 ,         "serviceLoad" : 6     } }

            People

            Assignee:
            pierre.regazzoni Pierre Regazzoni
            Reporter:
            Sitaram.Vemulapalli Sitaram Vemulapalli
            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