Files
zitadel/internal
Livio SpringandGitHub ee92560f32 fix(projections): handle reduce error by updating failed events (#10726)
# Which Problems Are Solved

I noticed that a failure in the projections handlers `reduce` function
(e.g. creating the statement or checking preconditions for the
statement) would not update the `failed_events2` table.
This was due to a wrong error handling, where as long as the
`maxFailureCount` was not reached, the error was returned after updating
the `failed_events2` table, which causes the transaction to be rolled
back and thus losing the update.

# How the Problems Are Solved

Wrap the error into an `executionError`, so the transaction is not
rolled back.

# Additional Changes

none

# Additional Context

- noticed internally
- requires backport to v3.x and v4.x
2025-09-15 18:32:28 +02:00
..
2025-08-21 09:02:32 +02:00
2025-06-27 17:25:44 +02:00
2025-05-02 13:44:24 +02:00
2024-01-02 14:26:31 +00:00
2025-04-02 16:53:06 +02:00
2024-01-02 14:26:31 +00:00
2025-06-27 17:25:44 +02:00
2025-07-02 13:57:41 +02:00