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

Views are no longer automatically compacted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta
    • Fix Version/s: 2.0
    • Component/s: ns_server, view-engine
    • Security Level: Public
    • Labels:
      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

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

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        filipe fixed it

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - filipe fixed it

          People

          • Assignee:
            FilipeManana Filipe Manana (Inactive)
            Reporter:
            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