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

Eventing functions listening to wildcard collections should ignore documents present in _system scope

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Morpheus
    • 7.6.0
    • eventing
    • None
    • Enterprise Edition 7.6.0 build 1813
    • Untriaged
    • Centos 64-bit
    • 0
    • No

    Description

       Issue

      Create an Eventing function named test which listens to src_bucket..**.
      Create a primary index on src_bucket.
      Deploy the Eventing function test.

      Observation

      As we can see from the application logs Eventing function is mutating on documents which have been created with src_bucket._system._query collection.

      2023-11-22T20:18:04.095-08:00 [INFO] "Doc created/updated" "cbo::00000000::_default._default(index)fbcdcbe78576ee4d" 
      2023-11-22T20:18:04.094-08:00 [INFO] "Doc created/updated" "cbo::00000000::_default._default(histogram)(meta().id)" 
      2023-11-22T20:18:04.094-08:00 [INFO] "Doc created/updated" "cbo::00000000::_default._default"
      

      We need to ignore the documents created within _system scope.

      In addition to this, we should also probably not allow listening to any collection with _system scope as this scope is only meant for internal use and not for end users.

      Attachments

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

        Activity

          People

            rishit.chaudhary Rishit Chaudhary
            sujay.gad Sujay Gad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty