mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-14 09:55:12 +00:00
fix(projections): added check to make sure there cannot be 2 projections for the same table (#10439)
# Which Problems Are Solved It should not be possible to start 2 projections with the same name. If this happens, it can cause issues with the event store such as events being skipped/unprocessed and can be very hard/time-consuming to diagnose. # How the Problems Are Solved A check was added to make sure no 2 projections have the same table Closes https://github.com/zitadel/zitadel/issues/10453 --------- Co-authored-by: Silvan <[email protected]>
This commit is contained in:
@@ -90,7 +90,10 @@ func StartQueries(
|
||||
return nil, err
|
||||
}
|
||||
if startProjections {
|
||||
projection.Start(ctx)
|
||||
err = projection.Start(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
repo.caches, err = startCaches(
|
||||
|
||||
Reference in New Issue
Block a user