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

Panic during index scan for very large index key (ExplodeArray)

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      panic: runtime error: slice bounds out of range

      goroutine 25928 [running]:
      panic(0xd4a600, 0xc4200160d0)
      /home/couchbase/.cbdepscache/exploded/x86_64/go-1.7.3/go/src/runtime/panic.go:500 +0x1a1 fp=0xc42386f588 sp=0xc42386f4f8
      runtime.panicslice()
      /home/couchbase/.cbdepscache/exploded/x86_64/go-1.7.3/go/src/runtime/panic.go:34 +0x6d fp=0xc42386f5b8 sp=0xc42386f588
      github.com/couchbase/indexing/secondary/collatejson.(*Codec).code2json(0xc423ea9928, 0xc43335410d, 0x85, 0x1ef3, 0xc434bbc0f6, 0x244c5, 0x2449c, 0xc434bbc0ec, 0x9, 0x244a6, ...)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/collatejson/collate.go:397 +0xe36 fp=0xc42386f698 sp=0xc42386f5b8
      github.com/couchbase/indexing/secondary/collatejson.(*Codec).code2json(0xc42386f918, 0xc43333011f, 0x24073, 0x25ee1, 0xc434bbc000, 0xf6, 0x24592, 0x1, 0x26, 0x24592, ...)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/collatejson/collate.go:401 +0xb6b fp=0xc42386f778 sp=0xc42386f698
      github.com/couchbase/indexing/secondary/collatejson.(*Codec).ExplodeArray(0xc42386f918, 0xc433330000, 0x24192, 0x26000, 0xc434bbc000, 0x0, 0x24592, 0x4133ff, 0x416aae, 0xc423ea9930, ...)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/collatejson/array.go:24 +0x152 fp=0xc42386f868 sp=0xc42386f778
      github.com/couchbase/indexing/secondary/indexer.filterScanRow(0xc433330000, 0x24192, 0x26000, 0x1674ae0, 0xc4338aa020, 0x1674ae0, 0xc4338aa080, 0x3, 0xe75fc4, 0xb, ...)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/scan_pipeline.go:335 +0x45f fp=0xc42386f9e0 sp=0xc42386f868
      github.com/couchbase/indexing/secondary/indexer.(*IndexScanSource).Routine.func1(0xc433330000, 0x24192, 0x26000, 0xc434fd47a0, 0x0)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/scan_pipeline.go:132 +0x964 fp=0xc42386fb88 sp=0xc42386f9e0
      github.com/couchbase/indexing/secondary/indexer.(*plasmaSnapshot).iterEqualKeys(0xc435363860, 0x1674ae0, 0xc4338aa080, 0xc423f04b20, 0xf2fe98, 0xc430ce1680, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/plasma_slice.go:1755 +0x147 fp=0xc42386fbf0 sp=0xc42386fb88
      github.com/couchbase/indexing/secondary/indexer.(*plasmaSnapshot).Iterate(0xc435363860, 0x1670c80, 0xc4341e1a00, 0x1674ae0, 0xc4338aa020, 0x1674ae0, 0xc4338aa080, 0x3, 0xf2fe98, 0xc430ce1680, ...)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/plasma_slice.go:1719 +0x383 fp=0xc42386fc70 sp=0xc42386fbf0
      github.com/couchbase/indexing/secondary/indexer.(*plasmaSnapshot).Range(0xc435363860, 0x1670c80, 0xc4341e1a00, 0x1674ae0, 0xc4338aa020, 0x1674ae0, 0xc4338aa080, 0x3, 0xc430ce1680, 0x0, ...)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/plasma_slice.go:1651 +0xb2 fp=0xc42386fce0 sp=0xc42386fc70
      github.com/couchbase/indexing/secondary/indexer.(*IndexScanSource).Routine(0xc43019c380, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/scan_pipeline.go:198 +0x867 fp=0xc42386ff28 sp=0xc42386fce0
      github.com/couchbase/indexing/secondary/pipeline.(*Pipeline).runIt.func1(0xc4338aae40, 0xc43019c320)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/pipeline/pipeline.go:75 +0x45 fp=0xc42386ff90 sp=0xc42386ff28
      runtime.goexit()
      /home/couchbase/.cbdepscache/exploded/x86_64/go-1.7.3/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc42386ff98 sp=0xc42386ff90
      created by github.com/couchbase/indexing/secondary/pipeline.(*Pipeline).runIt
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/pipeline/pipeline.go:80 +0x66

      Attachments

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

        Activity

          People

            prathibha Prathibha Bisarahalli (Inactive)
            amit.kulkarni Amit Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty