fix: broker 'UNSUPPORTED_VERSION' problem arising from 'api_version'#168
Open
Niubility-Wen wants to merge 1 commit into
Open
fix: broker 'UNSUPPORTED_VERSION' problem arising from 'api_version'#168Niubility-Wen wants to merge 1 commit into
Niubility-Wen wants to merge 1 commit into
Conversation
Niubility-Wen
commented
Aug 22, 2024
|
I also encountered the same issue with Kafka version 1.x. By modifying the code as described above and setting api_version to 1, I was able to send messages to Kafka normally. As of today, it seems the latest version 0.23 has not adopted this code. I'm a bit confused now:
Please help me understand this, thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Hello, I am having some problems sending messages to different versions of kafka:
I found that the 'api_version' parameter in line 49 and 118 of client.lua is hard code
I have made some changes to client.lua to achieve better compatibility between client and broker