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

[CBM] - segmentation fault during teardown when attempting to close an unopened vBucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.0
    • 6.6.0, 6.6.1, 6.6.2, Cheshire-Cat
    • tools
    • Enterprise Edition 7.0.0 build 4342

    Description

      Description:

      Cbbackupmgr segfaults when taking a one off backup service backup while using Samba.

      Steps to reproduce:

      1. 3 nodes with the backup service running on all nodes.
      2. Created a samba share and mounted it on all 3 nodes.
      3. Created a repository which takes the mounted folder as the archive location.
      4. Took a one off backup.

      What happens:
      The backup fails with the following error present in the logs:

      backup-0.log

      2021-02-01T04:52:14.627-08:00 WARN: (DCP) (default) (vb 267) Received an unexpected error from the sink callback, beginning teardown: failed to open vBucket: failed to open vBucket 267: failed to open vBucket 267: failed to open index: failed to set 'user_version': SQLite database file is locked by another thread/process, see the logs for more information -- couchbase.(*DCPAsyncWorker).handleDCPError() at dcp_async_worker.go:553
      2021-02-01T04:52:14.627-08:00 (DCP) (default) (vb 267) Stream closed because all items were streamed | {"uuid":201080789249662,"snap_start":0,"snap_end":2,"snap_complete":true,"last_seqno":0,"retries":0}
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xbd5249]
      goroutine 271 [running]:
      github.com/couchbase/backup/storage.(*RiftDB).Commit(0xc00007d360, 0xc000456758, 0xc000456760)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/backup/storage/rift.go:321 +0xc9
      github.com/couchbase/backup/storage.(*VBucketBackupWriter).closeVBucket(0xc0005c1500, 0xc00043010b, 0x1, 0x4514f6)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/backup/storage/vbucket_backup_writer.go:452 +0x218
      github.com/couchbase/backup/storage.(*VBucketBackupWriter).CloseVBuckets.func1(0xc000303ec4, 0xc000456700, 0xc0005c1500, 0xc000db32c0)
              /home/couchbase/jenkins/workspace/couchbase-server-unix/backup/storage/vbucket_backup_writer.go:144 +0x8b
      created by github.com/couchbase/backup/storage.(*VBucketBackupWriter).CloseVBuckets
              /home/couchbase/jenkins/workspace/couchbase-server-unix/backup/storage/vbucket_backup_writer.go:140 +0x145

      What I expected to happen:

      Expected the backup to succeed.

      Logs:

      backup-0.log

       

      Attachments

        1. backup-0.log
          119 kB
        2. backup-0-1.log
          323 kB

        Issue Links

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

          Activity

            People

              asad.zaidi Asad Zaidi (Inactive)
              asad.zaidi Asad Zaidi (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