Indexer keeps crashing on our single node cluster with the following error message:
[Info] StorageMgr::handleCreateSnapshot Added New Snapshot Index: 13216018413211800430 PartitionId: 0 SliceId: 0 Crc64: 10951100166320911113 (SnapshotInfo: seqnos: 26, 26, 2468 committed:true) SnapType DISK_SNAP SnapAligned true SnapCreateDur 77.526577ms SnapOpenDur 85.854287ms
SIGBUS: bus error
PC=0x7dd8e3700a92 m=30 sigcode=128
signal arrived during cgo execution
goroutine 9978682 [syscall]:
runtime.cgocall(0xf3701e, 0xc00ff20668)
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/cgocall.go:157 +0x4b fp=0xc00ff20640 sp=0xc00ff20608 pc=0x40ae2b
github.com/couchbase/indexing/secondary/fdb._Cfunc_fdb_kvs_close(0x7dd6f9e4d0c0)
_cgo_gotypes.go:966 +0x47 fp=0xc00ff20668 sp=0xc00ff20640 pc=0xbb5ec7
github.com/couchbase/indexing/secondary/fdb.(*KVStore).Close.func1(0x7dd6f9e4d0c0?)
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/fdb/forestdb.go:57 +0x3d fp=0xc00ff206a0 sp=0xc00ff20668 pc=0xbbcd5d
github.com/couchbase/indexing/secondary/fdb.(*KVStore).Close(0xc01b1106c0)
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/fdb/forestdb.go:57 +0x145 fp=0xc00ff20738 sp=0xc00ff206a0 pc=0xbbcba5
github.com/couchbase/indexing/secondary/indexer.(*fdbSnapshot).Destroy(0xc01de1d240)
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/forestdb_snapshot.go:157 +0x85 fp=0xc00ff207c8 sp=0xc00ff20738 pc=0xdc3745
github.com/couchbase/indexing/secondary/indexer.(*fdbSnapshot).Close.func1()
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/forestdb_snapshot.go:145 +0x25 fp=0xc00ff207e0 sp=0xc00ff207c8 pc=0xdc3685
runtime.goexit()
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00ff207e8 sp=0xc00ff207e0 pc=0x473c61
created by github.com/couchbase/indexing/secondary/indexer.(*fdbSnapshot).Close in goroutine 128
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/forestdb_snapshot.go:145 +0x67
goroutine 1 [select]:
runtime.gopark(0xc00692d600?, 0x4?, 0xc0?, 0x87?, 0xc00692d4e0?)
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/proc.go:398 +0xce fp=0xc00692d320 sp=0xc00692d300 pc=0x44136e
runtime.selectgo(0xc00692d600, 0xc00692d4d8, 0x1372ce0?, 0x0, 0x119f906?, 0x1)
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/select.go:327 +0x725 fp=0xc00692d440 sp=0xc00692d320 pc=0x4517a5
github.com/couchbase/indexing/secondary/indexer.(*indexer).run(0xc00149aa80)
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/indexer.go:1070 +0x1e6 fp=0xc00692d650 sp=0xc00692d440 pc=0xdcf806
github.com/couchbase/indexing/secondary/indexer.NewIndexer(0x1cffcb0?)
/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/indexing/secondary/indexer/indexer.go:516 +0x254b fp=0xc00692dca8 sp=0xc00692d650 pc=0xdcacab
main.main()
goproj/src/github.com/couchbase/indexing/secondary/cmd/indexer/main.go:182 +0xf92 fp=0xc00692df40 sp=0xc00692dca8 pc=0xf35a32
runtime.main()
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/proc.go:267 +0x2bb fp=0xc00692dfe0 sp=0xc00692df40 pc=0x440efb
runtime.goexit()
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00692dfe8 sp=0xc00692dfe0 pc=0x473c61
goroutine 2 [force gc (idle), 72 minutes]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/proc.go:398 +0xce fp=0xc000070fa8 sp=0xc000070f88 pc=0x44136e
runtime.goparkunlock(...)
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/proc.go:404
runtime.forcegchelper()
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/proc.go:322 +0xb3 fp=0xc000070fe0 sp=0xc000070fa8 pc=0x4411d3
runtime.goexit()
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000070fe8 sp=0xc000070fe0 pc=0x473c61
created by runtime.init.6 in goroutine 1
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.21.3/go/src/runtime/proc.go:310 +0x1a
This usually happens when I’m trying to upsert documents in a loop. And when indexer goes down, the upsert fails.