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

System Event Log - Views

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.0.0
    • 7.1.0
    • view-engine
    • 1

    Description

      In Neo we're introducing a system event log to record events that happen across the cluster, see the parent MB, https://issues.couchbase.com/browse/MB-46215 for more details. 

      For Views we need to capture the following events. 

      Views Events Additional Details Needed
      DDoc Created UUID of the DDoc
      Number of embedded views
      DDoc Deleted UUID of the DDoc
      DDoc Modified UUID of the DDoc
      Draft DDoc Deployed UUID of the DDoc
      View Engine Crash Name of process that crashed
      PID of crashed process
      View Engine Settings Change Previous Setting and New Setting

      Attachments

        Issue Links

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

          Activity

            hareen.kancharla Hareen Kancharla added a comment - ns_server System event log, Design Document: https://docs.google.com/document/d/1dMkRVbJFQbGE0cfJl05lYN6qtv_jDv7YEdUfFzQGMbo/edit
            ankit.prabhu Ankit Prabhu added a comment -

            Ian McCloy, few questions/confirmation:

            1. "Draft DDoc Deployed": For views there is no such operation deployed. "Publish" will just create the new ddoc.
            So it will be logged as "DDoc Created" system event.
            2. "View Engine Crash": Could you please elaborate it? Did you mean any gen_server crash which is internal to the view engine?
            3. Above mentioned list looks like for successful events only. Its additional details are not capturing any failure scenario.
            Do we need separate events for failure scenario like "DDoc creation failure" or status to be included in the details.

            {"status": ..., "error":".."}
            ankit.prabhu Ankit Prabhu added a comment - Ian McCloy , few questions/confirmation: 1. "Draft DDoc Deployed": For views there is no such operation deployed. "Publish" will just create the new ddoc. So it will be logged as "DDoc Created" system event. 2. "View Engine Crash": Could you please elaborate it? Did you mean any gen_server crash which is internal to the view engine? 3. Above mentioned list looks like for successful events only. Its additional details are not capturing any failure scenario. Do we need separate events for failure scenario like "DDoc creation failure" or status to be included in the details. {"status": ..., "error":".."}
            ankit.prabhu Ankit Prabhu added a comment - - edited

            System events:
            Ddoc creation: Bucket, ddoc Name, num views
            Ddoc deleted: Bucket, ddoc Name
            Ddoc modified: Bucket, ddoc Name, num views
            Settings changed: Setting key, Old value, new value

            ankit.prabhu Ankit Prabhu added a comment - - edited System events: Ddoc creation: Bucket, ddoc Name, num views Ddoc deleted: Bucket, ddoc Name Ddoc modified: Bucket, ddoc Name, num views Settings changed: Setting key, Old value, new value

            Build couchbase-server-7.1.0-1438 contains couchdb commit f2f0169 with commit message:
            MB-47026: Views system event

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1438 contains couchdb commit f2f0169 with commit message: MB-47026 : Views system event

            Build couchbase-server-7.1.0-1449 contains couchdb commit 745b99f with commit message:
            MB-47026: Fix dialyser crash

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1449 contains couchdb commit 745b99f with commit message: MB-47026 : Fix dialyser crash
            ianmccloy Ian McCloy added a comment -

            So we have no way of logging when a Development DDoc is created vs a Production DDoc ?

            "View Engine Crash" — if anything in the view engine stops functioning, can we get an event triggered to let an admin know ?

            "DDoc creation failure" would be a great addition, please do add this.

            ianmccloy Ian McCloy added a comment - So we have no way of logging when a Development DDoc is created vs a Production DDoc ? "View Engine Crash" — if anything in the view engine stops functioning, can we get an event triggered to let an admin know ? "DDoc creation failure" would be a great addition, please do add this.

            People

              ankit.prabhu Ankit Prabhu
              ianmccloy Ian McCloy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty