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

Indexer can pick up wrong file if restarted during compaction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.1.1
    • 4.1.0
    • secondary-index
    • None
    • Untriaged
    • Unknown

    Description

      When running compaction, the indexer will create a new file with next revision number (i.e. data.fdb.5 will be compacted into data.fdb.6).

      If a restart occurs during compaction, the new indexer is confronted with 2 files. It should pick the lower revision as the higher one is likely incomplete. This is the intend and design of the indexer, however we incorrectly sort the list of files, meaning that .10 will be picked up instead of .9. This also has the side effect of effectively leaking the lower numbered file and consuming disk space.

      Attachments

        Issue Links

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

          Activity

            People

              ericcooper Eric Cooper (Inactive)
              James Flather James Flather (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty