-
Type: Task
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Realm
-
Labels:
When a Database Trigger raises an error (i.e. an exception propagates out of the user-defined function), that error is ignored, and does not lead to any retry or suspension of the trigger. I found this out recently in a discussion with laura.zhukas@mongodb.com, but it had not been clear to me from the documentation.
I suggest adding a bullet point to this list, saying that "an error in a user-defined trigger function, i.e. an exception propagating out of that function does not lead to a suspension of the trigger".
In addition, it should be documented more clearly and in a more prominent place that errors in user functions are ignored by the trigger mechanism (not just for database triggers but for other triggers as well), and that there's never going to be a retry in response to such errors.