Details
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 |
202091,11 | MB-59796: Ignore documents present in `_system` scope | unstable | eventing | Status: MERGED | +2 | +1 |