-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TASK: Export event cleanup and error handling for catchupd events #4952
TASK: Export event cleanup and error handling for catchupd events #4952
Conversation
The error should be enhanced by its event type and sequence number: ``` Failed to decode data of event "e9d12a09-16ef-41ae-82b7-b2485e69ee95": Control character error, possibly incorrectly encoded ```
151c609
to
59fdeef
Compare
* @param array<mixed> $payload | ||
* @param array<mixed> $metadata | ||
*/ | ||
public function __construct( | ||
public readonly string $identifier, | ||
public readonly string $type, | ||
public readonly array $payload, // TODO: string | ||
public readonly array $payload, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi i tried to solve the todo #4917 but its senseless ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement, just a few comments though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 by reading
We fixed the root source for the frequent problem of workspace rebase failed events having a too big payload #4545, which might be clamped when dumping the events table and importing it elsewhere where it cannot be decoded.
But i think enriching the error with the sequence number makes sense, as the event id might not really be known to developers.
Upgrade instructions
Review instructions
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions