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

[CBM] Panic when disabling bucket config

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.6.2
    • 7.6.2
    • tools
    • Untriaged
    • 0
    • Unknown
    • Build Team 2024 Sprint 3

    Description

      Reproduction steps

      1. Create a bucket on the cluster with flush disabled
      2. ./install/bin/cbbackupmgr config -a ~/BackupArchive -r repo --disable-bucket-config
      3. Enable flush on the bucket
      4. ./install/bin/cbbackupmgr backup -a ~/BackupArchive -r repo -c localhost:9000 -u Administrator -p asdasd
      5. Disable flush on the bucket
      6. ./install/bin/cbbackupmgr restore -a ~/BackupArchive -r repo -c localhost:9000 -u Administrator -p asdasd --enable-bucket-config

      Panic occurs:

      2024-05-20T15:14:36.274+01:00 (Plan) (Bucket) Successfully ensured remote bucket 'default' exists | {"number":1,"duration":"1.846542ms"}
      2024-05-20T15:14:36.293+01:00 (Plan) (CheckBucketSupportsECCV) Checking if source bucket'default' supports HLV
      2024-05-20T15:14:36.293+01:00 (Stats) Stopping stat collection
      2024-05-20T15:14:36.370+01:00 (TmpDir) Cleaned up current tmp dir "/Users/safianali/BackupArchive/.tmp/10636-PqU80g=="
      [signal SIGSEGV: segmentation violation code=0x2 addr=0xf8 pc=0x10317c474]
       
       
      goroutine 1 [running]:
      github.com/couchbase/backup/archive.(*Source).CheckBucketSupportsECCV(0x1033ec7d7?, {0x140005e39b0?, 0x140005be1b0?})
              /Users/safianali/VSCodeProjects/tlm/source/backup/archive/source.go:508 +0x74
      github.com/couchbase/backup/plan/cluster/bucket.(*checkBucketSupportsECCV).Execute(0x140007cad50, {0x12c4760a0, 0x14000710de0}, {0x12c476158, 0x1400011d008}, 0x1400085a4f8)
              /Users/safianali/VSCodeProjects/tlm/source/backup/plan/cluster/bucket/check_bucket_supports_ECCV.go:34 +0xd8
      github.com/couchbase/backup/plan/cluster/bucket.(*Bucket).Execute(0x140005b7360, {0x12c4760a0, 0x14000710de0}, {0x12c476158, 0x1400011d008}, 0x1400085a4f8)
              /Users/safianali/VSCodeProjects/tlm/source/backup/plan/cluster/bucket/bucket.go:154 +0x174
      github.com/couchbase/backup/plan/cluster.(*Cluster).Execute.func1(0x88?)
              /Users/safianali/VSCodeProjects/tlm/source/backup/plan/cluster/cluster.go:96 +0x10c
      github.com/couchbase/backup/plan/cluster.(*Cluster).Execute(0x14000068870, {0x12c475eb8, 0x14000710de0}, {0x12c475f88, 0x1400011d008}, 0x1400085a4f8)
              /Users/safianali/VSCodeProjects/tlm/source/backup/plan/cluster/cluster.go:105 +0x8c
      github.com/couchbase/backup/plan.(*Plan).execute(0x140007842e0, {0x103f4bc08, 0x14000710de0}, {0x103f4dd58, 0x1400011d008}, {0x103f3f6e0, 0x140004598c0})
              /Users/safianali/VSCodeProjects/tlm/source/backup/plan/plan.go:126 +0xf0
      github.com/couchbase/backup/plan.(*Plan).Execute(0x23?, {0x103f4bc08?, 0x14000710de0?}, {0x103f4dd58?, 0x1400011d008?}, {0x103f3f6e0, 0x140004598c0})
              /Users/safianali/VSCodeProjects/tlm/source/backup/plan/plan.go:60 +0x34
      github.com/couchbase/backup/transferable.(*transferable).Execute(0x1033a8909?, {0x103f3f6e0?, 0x140004598c0?})
              /Users/safianali/VSCodeProjects/tlm/source/backup/transferable/transferable.go:39 +0x4c
      main.(*RestoreContext).Run(0x14000150c08)
              backup/cmd/cbbackupmgr/restore.go:455 +0x1b24
      github.com/couchbase/cbflag.(*Command).parseFlags(0x14000647b20, 0x140005051a8, {0x1400004e6a0, 0xb, 0x103b2b2c0?})
              /Users/safianali/.cbdepscache/gomodcache/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20220325172535-f0f642f857ed/command.go:283 +0xdf4
      github.com/couchbase/cbflag.(*Command).parse(0x14000647b20, 0x140005051a8, {0x1400004e6a0, 0xb, 0xb})
              /Users/safianali/.cbdepscache/gomodcache/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20220325172535-f0f642f857ed/command.go:111 +0x130
      github.com/couchbase/cbflag.(*Command).parseCommands(0x14000647b90, 0x140005051a8, {0x1400004e690, 0xc, 0xc})
              /Users/safianali/.cbdepscache/gomodcache/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20220325172535-f0f642f857ed/command.go:124 +0x154
      github.com/couchbase/cbflag.(*Command).parse(0x14000647b90, 0x140005051a8, {0x1400004e690, 0xc, 0xc})
              /Users/safianali/.cbdepscache/gomodcache/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20220325172535-f0f642f857ed/command.go:109 +0x14c
      github.com/couchbase/cbflag.(*CLI).Parse(0x1400066c400, {0x1400004e680, 0xd, 0xd})
              /Users/safianali/.cbdepscache/gomodcache/pkg/mod/github.com/couchbase/cbflag@v0.0.0-20220325172535-f0f642f857ed/cli.go:70 +0x168
      main.main()
              backup/cmd/cbbackupmgr/main.go:4137 +0xad00

      Attachments

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

        Activity

          People

            gilad.kalchheim Gilad Kalchheim
            safian.ali Safian Ali
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty