Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Corrupted lines in produce cmd with 'line' mode #366

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

vladaburian
Copy link
Contributor

scanner.Bytes() returns internal buffer which is reused. That results in corrupted messages as message value (internal buffer) is modified by scanner while being sent to kafka.

@birdayz
Copy link
Owner

birdayz commented Sep 28, 2024

good catch - thank you!

@birdayz birdayz merged commit 0e1dddd into birdayz:master Sep 28, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants