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

Detect missing log file segment during initialization

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Cheshire-Cat, 5.5.4
    • 7.1.0
    • storage-engine
    • Untriaged
    • 1
    • No

    Description

      During initialization of multiFilelog, the start and end offsets are interpreted from the log segment file names. If any of the log files are missing, these offsets can be incorrect and must be verified. Additionally, these offsets must also be verified against the offsets in the superblock.

       

      If any of the log.X.data files are deleted, the indexer can run into panic-restart loop. I am able to reproduce this issue locally with the following steps:

      • set indexer.plasma.LSSSegmentFileSize to a small size (say 5MB)
      • create index and load enough documents to see multiple log.X.data files
      • delete some of the log.X.data files and restart indexer

      Attachments

        Issue Links

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

          Activity

            Build couchbase-server-7.1.0-1082 contains plasma commit 3d97f8a with commit message:
            MB-43020: Add check for validating log segments

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1082 contains plasma commit 3d97f8a with commit message: MB-43020 : Add check for validating log segments
            ritam.sharma Ritam Sharma added a comment - Steps to validate - https://issues.couchbase.com/browse/MB-47429

            Closing the issue as steps been verified on build 7.1.0-2335

            sanjit.chauhan Sanjit Chauhan added a comment - Closing the issue as steps been verified on build 7.1.0-2335

            People

              sanjit.chauhan Sanjit Chauhan
              akhil.mundroy Akhil Mundroy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change

                  PagerDuty