zitadel/internal/eventstore
Silvan 17953e9040
fix(setup): init projections (#7194)
Even though this is a feature it's released as fix so that we can back port to earlier revisions.

As reported by multiple users startup of ZITADEL after leaded to downtime and worst case rollbacks to the previously deployed version.

The problem starts rising when there are too many events to process after the start of ZITADEL. The root cause are changes on projections (database tables) which must be recomputed. This PR solves this problem by adding a new step to the setup phase which prefills the projections. The step can be enabled by adding the `--init-projections`-flag to `setup`, `start-from-init` and `start-from-setup`. Setting this flag results in potentially longer duration of the setup phase but reduces the risk of the problems mentioned in the paragraph above.
2024-01-25 17:28:20 +01:00
..
handler fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
repository fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
v1/models refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
v3 fix(db): always use begin tx (#7142) 2024-01-04 16:12:20 +00:00
aggregate.go feat: restrict languages (#6931) 2023-12-05 11:12:01 +00:00
asset.go fix(eventstore): sub queries (#1805) 2021-07-06 13:55:57 +02:00
bench_payload.txt feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
config.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event_base.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
eventstore_bench_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_pusher_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_querier_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_test.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
eventstore.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
example_test.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
local_crdb_test.go chore: pin crdb version for unit tests (#7260) 2024-01-18 08:16:54 +00:00
read_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
search_query_test.go fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
search_query.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
subscription.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraint.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
write_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00