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

CBGT loadDataDir and janitor operations overlap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • backlog
    • Cheshire-Cat
    • fts
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      While investigating MB-44446 "could not open pindex: PINDEX_META: no such file or directory" multiple issues were found.

      Changes associated with MB-44446 are limited to attempting to reduce lock contention, believe to contribute to loadDataDir taking excessive time (hours).

      However, regardless of exactly how long loadDataDir takes, it's behavior is asynchronous, and can overlap with operations of the janitor.  This has at least two problems:

      1.  Both loadDataDir and the janitor start pindexes methods often attempt to do the same work, around the same time.  Increasing resource and lock contention unnecessarily.

      2.  The janitor mutates state operated on by loadDataDir (files/dirs on disk), which can lead to unexpected errors (no such file or directory as seen in MB-44446).

      Changes related to this issue will attempt to address this deeper design issue.

       

       

      Attachments

        Issue Links

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

          Activity

            People

              abhinav Abhi Dangeti
              marty.schoch Marty Schoch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change

                  PagerDuty