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

Leaked secondary index metadata files when crashing during index creation

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown
    • Analytics Sprint 21

    Description

      When CC crash happens while a secondary index being created, its metadata files will continue to be in storage. On metadata recovery, this index entry with pending build indicator will be removed from the metadata catalog but the metadata files on storage will not be removed. While this won't cause a problem if the index is re-created since we will delete any existing metadata files first, those files might leak if the collection is dropped.

      This can put the service is a restart loop due to not finding the primary index of the secondary during the node local recovery step.

      The possible workarounds are:

      1. Manually delete any leaked files from storage to all the node recovery to complete.
      2. Failover the node facing the issue.

      Attachments

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

        Activity

          People

            umang.agrawal Umang
            murtadha.hubail Murtadha Hubail
            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