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

Avoid unnecessary IO in compaction daemon's view cleanup phase

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0
    • 2.0
    • ns_server
    • Security Level: Public
    • None

    Description

      Currently, the compaction daemon in ns_server issues a view cleanup (mapreduce views) request against every existent vbucket database in a node [1]. This is unnecessary as design documents live exclusively on the master database. It's also inefficient, as it implies scanning all the vbucket databases for design documents, which simply don't exist there.

      Therefore it's enough to call couch_view:cleanup_index_files/1 against the master database only.

      [1] - https://github.com/couchbase/ns_server/blob/master/src/compaction_daemon.erl#L457

      Attachments

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

        Activity

          People

            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            FilipeManana Filipe Manana (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty