Skip to content

fix: tester should fail when messages cannot be written#227

Merged
petedannemann merged 3 commits intomasterfrom
fix/tester-writer
Mar 10, 2025
Merged

fix: tester should fail when messages cannot be written#227
petedannemann merged 3 commits intomasterfrom
fix/tester-writer

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