Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16747

Better Documentation of Error Handling in Database Triggers

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Realm

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            andre.spiegel@mongodb.com Andre Spiegel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              1 week, 4 days ago