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

Couchstore compaction creates and then overwrites header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Morpheus
    • 6.0.0, 7.6.0, 7.0.0, 7.1.0, 7.2.0
    • storage-engine
    • None
    • Untriaged
    • 0
    • No

    Description

      When you try to open a couchstore database (for creation) it'll start off by writing a header block at offset 0. That database header isn't really that interesting as there isn't any data in the database yet. As part of compaction we want to get rid of all unused space in the file, and this block doesn't contain any data so we want to get rid of it. This is currently done by overwriting it. Instead, header creation should be delayed until the first commit.

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-62352
          # Subject Branch Project Status CR V

          Activity

            People

              pavlos.georgiou Pavlos Georgiou
              pavlos.georgiou Pavlos Georgiou
              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