Skip to content
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

fix(dlq): RunTaskWithMultiprocessing supports forwarding downstream invalid message #301

Merged
merged 5 commits into from
Nov 8, 2023

Conversation

lynnagara
Copy link
Member

Invalid messages raised from strategies downstream of RunTaskWithMultiprocessing are not correctly handled currently. Currently messages from that batch will be re-submitted to the next step multiple times. This change ensures they are correctly re-raised and avoids the duplicate messages downstream.

…nvalid message

Invalid messages raised from strategies downstream of RunTaskWithMultiprocessing
are not correctly handled currently. Currently messages from that batch will
be re-submitted to the next step multiple times. This change ensures they are
correctly re-raised and avoids the duplicate messages downstream.
@lynnagara lynnagara requested a review from a team as a code owner November 7, 2023 23:03
Copy link
Member

@john-z-yang john-z-yang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally with the metrics indexer.

Created 16 partition on the metrics topic and ran 2 indexers, each with 4 processes and prod batch size/timing.

Sent 1560 messages, 1440 of them are valid and 120 of them invalid, and verified that the valid ones all showed up in clickhouse, and invalid ones are in the dlq.

LGTM, thank you so much

@lynnagara lynnagara merged commit 54f4369 into main Nov 8, 2023
8 checks passed
@lynnagara lynnagara deleted the run-task-with-multiprocessing branch November 8, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants