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

Lua entry thread aborted cause by unknown errcode #131

Open
sko00o opened this issue May 7, 2022 · 0 comments
Open

Lua entry thread aborted cause by unknown errcode #131

sko00o opened this issue May 7, 2022 · 0 comments

Comments

@sko00o
Copy link
Contributor

sko00o commented May 7, 2022

What version

lua-resty-kafka v0.08

What happened

After I upgrade Kafka Cluster from 0.10.2.1 to 3.1 . Got following error logs on one broker disk full:

image

Following the error log, I think the problem cause by errcode not covered in Errors table.

https://github.com/doujiang24/lua-resty-kafka/blob/v0.08/lib/resty/kafka/producer.lua#L183
image

What I expect

I saw the latest release 0.20 already extend error list, but still not considered the error code list in kafka protocol could extend in the future.

Maybe we shouldn't pass any err==nil into sendBuffer:err. In my opinion, we can fallback any errcode not covered into UNKNOWN_SERVER_ERROR and show that errcode in log.

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

1 participant