Description
To reproduce, start a cluster_run and try to load a sample bucket:
panic: runtime error: index out of range [29674] with length 1024
|
|
goroutine 103 [running]:
|
github.com/couchbase/backup/value.(*BucketStats).ValidSeqNo(0xc000252a20, 0x83dc, 0x0)
|
/home/couchbase/jenkins/workspace/master/backup/value/bucket_stats.go:250 +0x1bc
|
github.com/couchbase/backup/plan/services/data.(*ValidationFilter).Document(0xc00060e198, 0xe070, 0xc00018c080)
|
/home/couchbase/jenkins/workspace/master/backup/plan/services/data/validation_filter.go:28 +0x36
|
github.com/couchbase/backup/jsondata.(*Source).Data.func1(0xc00057aee8)
|
/home/couchbase/jenkins/workspace/master/backup/jsondata/source.go:222 +0x123
|
github.com/couchbase/backup/jsondata.(*Source).Data.func2.1()
|
/home/couchbase/jenkins/workspace/master/backup/jsondata/source.go:230 +0x22
|
github.com/couchbase/tools-common/hofp.(*Pool).work(0xc00059a100)
|
/home/couchbase/jenkins/workspace/master/build/gopkg/go-1.17/pkg/mod/github.com/couchbase/tools-common@v0.0.0-20210915152739-2338f690a8a7/hofp/pool.go:65 +0x11b
|
created by github.com/couchbase/tools-common/hofp.NewPool
|
/home/couchbase/jenkins/workspace/master/build/gopkg/go-1.17/pkg/mod/github.com/couchbase/tools-common@v0.0.0-20210915152739-2338f690a8a7/hofp/pool.go:46 +0x14c).
|
I couldn't run cbcollect_info due to a python related issue, but I attached the cluster_run logs.
Is it possible to add a simple pre-commit validation test that can protect against this? we have hundreds of pre-commit regression tests in Analytics that use sample buckets and every time this happens our tests are blocked. Just last month we encountered this due to MB-48026.