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

Views are no longer automatically compacted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0
    • 2.0-beta
    • ns_server, view-engine
    • Security Level: Public
    • None

    Description

      There was an optimization which avoids the need to replicate/copy all design documents from the "master" database (a couch database named "master"), which stores only design documents, to all the local vbucket couch databases. This optimization avoids a huge number of couch local -> local replication that consume too many resources and introduce a small delay in propagating the design documents.

      However, the compaction daemon (in ns_server, but very, very, very similar to the one in couchdb repository) is looking for design documents in the vbucket databases in order to find which views each has. This is a noop, and it has to get the design document names from the master database instead.

      The corresponding couchdb change is:

      https://github.com/couchbase/couchdb/commit/c0e4cea90d163231a9dd7a85f80265569e6f6b7a

      The ns_server and couchdb compaction daemons:

      https://github.com/couchbase/couchdb/blob/preview/src/couchdb/couch_compaction_daemon.erl
      https://github.com/membase/ns_server/blob/branch-20/src/couchbase_compaction_daemon.erl

      Attachments

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

        Activity

          People

            FilipeManana Filipe Manana (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