feat: add ability to reproject broken entities - #37
Open
felixgehrmann wants to merge 1 commit into
Open
Conversation
MaxBreida
reviewed
Jul 28, 2026
|
|
||
| // reprojectBrokenEntity projects an entity from zero to current event version minus 1. | ||
| // Useful for when projections are broken for whatever reason, but not very performant. | ||
| func (h *EventHandler) reprojectBrokenEntity(ctx context.Context, id uuid.UUID, event eh.Event, causingErr error) (eh.Entity, error) { |
Member
There was a problem hiding this comment.
haben wir denn hier irgendwann auch mal ne ausstiegsklausel, sodass wir irgendwann mal aufhören mit dem Versuch hiervon?
Author
There was a problem hiding this comment.
Er probiert es ja nur einmal pro Run des EventHandlers? Wir haben glaube ich keinen allgemeinen Marker hier verfügbar, der sagt, dass es komplett im Arsch ist.
Member
There was a problem hiding this comment.
Joa aber im Zweifel halt für immer 😄
Member
There was a problem hiding this comment.
Aber meine steile These ist halt, dass nen Retry auch nix ändern wird, wenn das Reprojecten auch failed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Entitites with incorrect version or that are downright missing can complety block eventhandling.
Developers have to fix this manually until now.