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

dekaf: Fix Fetch encoding issue for some versions of librdkafka #1693

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

jshearer
Copy link
Contributor

@jshearer jshearer commented Oct 11, 2024

I wrongly assumed that kafka-protocol would do the right thing when passing None to a fetch response's records. It appears that it encodes this with a length of -1, but I found that caused issues when testing locally:

Protocol parse failure for Fetch v11 ... invalid MessageSetSize -1

It still reads documents when the chunk returns some, but otherwise it logs that error frequently. This fixes it


This change is Reviewable

@jshearer jshearer force-pushed the jshearer/dekaf_message_format branch from 67902da to c7904ec Compare October 11, 2024 15:26
@jshearer
Copy link
Contributor Author

Confirmed that this fixes the errors, and also fixes the Dekaf build

@jshearer jshearer requested a review from psFried October 11, 2024 15:47
@jshearer jshearer marked this pull request as ready for review October 11, 2024 15:47
Copy link
Member

@psFried psFried left a comment

Choose a reason for hiding this comment

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

LGTM

@jshearer jshearer merged commit c020a60 into master Oct 11, 2024
5 checks passed
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.

2 participants