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

[FTS Scorch] Panic accessing unknown fieldID

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      Build : 5.5.0-2211

      Testcase : ./testrunner -i /tmp/testexec.2850.ini cluster=D+F,get-cbcollect-info=True,GROUP=P0,index_type=scorch -t fts.stable_topology_fts.StableTopFTS.test_query_type_on_alias,dataset=wiki,items=30000,num_queries=100,query_types=match,cluster=D:F,compare_es=True,GROUP=P0

      Job : centos-fts_defmap-P0-scorch

      This testcase creates an alias on the FTS index and uses the alias to query. A panic is observed in FTS logs once the alias is created successfully.

      2018-03-17T23:47:13.949-07:00 [INFO] cfg_metakv: Set, key: indexDefs, cas: 1, split: false, nodeUUID: 289b834a969ea695be922241f1dd21b3
      2018-03-17T23:47:13.949-07:00 [INFO] cfg_metakv: Set path: /fts/cbgt/cfg/indexDefs
      2018-03-17T23:47:13.969-07:00 [INFO] cfg_metakv: metaKVCallback, path: /fts/cbgt/cfg/indexDefs, key: indexDefs, deletion: false
      2018-03-17T23:47:13.969-07:00 [INFO] manager_api: index definition created, indexType: fulltext-alias, indexName: alias_1521355633, indexUUID: 6b09af4e11c78fd2
      2018-03-17T23:47:13.989-07:00 [INFO] ctl: kickIndexDefs, kind: cfgEvent
      2018-03-17T23:47:14.009-07:00 [INFO] planner: nodesRemove: []string(nil)
      2018-03-17T23:47:14.009-07:00 [INFO] planner: step planner
      panic: runtime error: index out of range
       
      goroutine 434064 [running]:
      panic(0xcaea00, 0x1403e50)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/panic.go:540 +0x45e fp=0xc4207f5500 sp=0xc4207f5458 pc=0x42d32e
      runtime.panicindex()
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/panic.go:28 +0x5e fp=0xc4207f5520 sp=0xc4207f5500 pc=0x42be2e
      github.com/blevesearch/bleve/index/scorch/segment/zap.(*PostingsIterator).readLocation(0xc486287760, 0xc463ef8d80, 0x3f800001, 0x0)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index/scorch/segment/zap/posting.go:441 +0x682 fp=0xc4207f55f8 sp=0xc4207f5520 pc=0x5b2b72
      github.com/blevesearch/bleve/index/scorch/segment/zap.(*PostingsIterator).Next(0xc486287760, 0x0, 0xc4207f56b8, 0x52714e, 0x123f940)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index/scorch/segment/zap/posting.go:496 +0x274 fp=0xc4207f5680 sp=0xc4207f55f8 pc=0x5b2df4
      github.com/blevesearch/bleve/index/scorch.(*IndexSnapshotTermFieldReader).Next(0xc42a972000, 0xc451081aa8, 0xc42d58d4a8, 0x0, 0x0)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index/scorch/snapshot_index_tfr.go:76 +0x89 fp=0xc4207f56f0 sp=0xc4207f5680 pc=0x5fb429
      github.com/blevesearch/bleve/search/searcher.(*TermSearcher).Next(0xc451081a80, 0xc42d58d4b0, 0xc42d58d4a8, 0x1, 0x1)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/search/searcher/search_term.go:97 +0x9f fp=0xc4207f5748 sp=0xc4207f56f0 pc=0x9cfbaf
      github.com/blevesearch/bleve/search/searcher.(*DisjunctionSearcher).Next(0xc486288fa0, 0xc42d58d4b0, 0x1245ca0, 0xc42acfce40, 0xc47e9c7dd0)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/search/searcher/search_disjunction.go:235 +0x1ee fp=0xc4207f5838 sp=0xc4207f5748 pc=0x9c595e
      github.com/blevesearch/bleve/search/collector.(*TopNCollector).Collect(0xc421127ad0, 0x123de80, 0xc42001a058, 0x12432e0, 0xc486288fa0, 0x1245ca0, 0xc42acfce40, 0xc486288fa0, 0x0)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/search/collector/topn.go:163 +0x185 fp=0xc4207f58c8 sp=0xc4207f5838 pc=0x9b7125
      github.com/blevesearch/bleve.(*indexImpl).SearchInContext(0xc420ca9dc0, 0x123de80, 0xc42001a058, 0xc453153e30, 0x0, 0x0, 0x0)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index_impl.go:506 +0xfde fp=0xc4207f5e58 sp=0xc4207f58c8 pc=0x9f341e
      github.com/couchbase/cbft.(*cacheBleveIndex).SearchInContext(0xc43f61e9c0, 0x123de80, 0xc42001a058, 0xc453153e30, 0xc444d83120, 0xc44ffa7940, 0xc4308ec52c)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/cbft/cache_bleve.go:110 +0x38a fp=0xc4207f5f18 sp=0xc4207f5e58 pc=0xb2fbea
      github.com/blevesearch/bleve.MultiSearch.func1(0x1248040, 0xc43f61e9c0, 0xc453153e30)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index_alias_impl.go:458 +0x152 fp=0xc4207f5fc8 sp=0xc4207f5f18 pc=0x9fb342
      runtime.goexit()
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc4207f5fd0 sp=0xc4207f5fc8 pc=0x45e8b1
      created by github.com/blevesearch/bleve.MultiSearch
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/blevesearch/bleve/index_alias_impl.go:465 +0x19d
       
      goroutine 1 [chan receive, 155 minutes]:
      runtime.gopark(0xdf2470, 0xc4202daf58, 0xdbcaef, 0xc, 0xc420110217, 0x3)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/proc.go:287 +0x12c fp=0xc420389b68 sp=0xc420389b38 pc=0x42f42c
      runtime.goparkunlock(0xc4202daf58, 0xdbcaef, 0xc, 0x1000f0100df1c17, 0x3)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/proc.go:293 +0x5e fp=0xc420389ba8 sp=0xc420389b68 pc=0x42f51e
      runtime.chanrecv(0xc4202daf00, 0x0, 0xc91801, 0xc420280a30)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/chan.go:506 +0x304 fp=0xc420389c58 sp=0xc420389ba8 pc=0x4064f4
      runtime.chanrecv1(0xc4202daf00, 0x0)
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/chan.go:388 +0x2b fp=0xc420389c88 sp=0xc420389c58 pc=0x40619b
      main.main()
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/cbft/cmd/cbft/main.go:228 +0x1112 fp=0xc420389f80 sp=0xc420389c88 pc=0xbc0582
      runtime.main()
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/proc.go:195 +0x226 fp=0xc420389fe0 sp=0xc420389f80 pc=0x42ef76
      runtime.goexit()
      	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.9.3/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc420389fe8 sp=0xc420389fe0 pc=0x45e8b1
      

      The FTS service keeps on crashing after this with the same panic. Logs attached.

      Attachments

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

        Activity

          People

            apiravi Aruna Piravi (Inactive)
            mihir.kamdar Mihir Kamdar (Inactive)
            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