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

Loading a sample bucket fails with panic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • 7.1.0
    • tools
    • None
    • Untriaged
    • 1
    • Yes

    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.

      Attachments

        Issue Links

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

          Activity

            People

              murtadha.hubail Murtadha Hubail
              murtadha.hubail Murtadha Hubail
              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