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

Compatibility issues that arise when sending messages to different versions of Kafka. #169

Open
yuqiquan opened this issue Oct 10, 2024 · 1 comment

Comments

@yuqiquan
Copy link

Using version 0.23 of lua-resty-kafka to communicate with a version 1.0 Kafka broker results in an UNSUPPORTED_VERSION error.

Through my research, I found that the version used for communication with the broker in the client.lua code is actually hardcoded.

image

image

image

The key point is that api_versions_encode uses a fixed v2. What confuses me is why v2 is used here when everywhere else uses v1. I can send messages to Kafka normally if I change this v2 to v1. Can you tell me the reason for using v2?

I personally think this might be a bug.

@SeungyeopShin
Copy link

+1

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

No branches or pull requests

2 participants