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: tester should fail when messages cannot be written #227

Merged
merged 3 commits into from
Mar 10, 2025

Conversation

petedannemann
Copy link
Contributor

@petedannemann petedannemann commented Mar 10, 2025

When writing messages, tester used the async mode, which was unable of write errors. This switches that to send messages synchronously so that we can surface errors that come back from Kafka.

Topic: testerConfig.topic,
Balancer: &kafka.LeastBytes{},
Async: true,
QueueCapacity: 5,
Copy link
Contributor Author

@petedannemann petedannemann Mar 10, 2025

Choose a reason for hiding this comment

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

QueueCapacity was deprecated and is no longer necessary

@petedannemann petedannemann marked this pull request as ready for review March 10, 2025 15:49
@petedannemann petedannemann requested a review from a team as a code owner March 10, 2025 15:49
erushing
erushing previously approved these changes Mar 10, 2025
@petedannemann petedannemann changed the title fix: tester fails when messages cannot be written fix: tester should fail when messages cannot be written Mar 10, 2025
@petedannemann petedannemann merged commit 5db451a into master Mar 10, 2025
8 checks passed
@petedannemann petedannemann deleted the fix/tester-writer branch March 10, 2025 17:33
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