-
Notifications
You must be signed in to change notification settings - Fork 277
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
The timestamp of kafka is -1 #158
Comments
in producer.lua in line 32 i've remove "not" when it's now it take api_version parama from produer init, and using message format with timestamp. not sure of other unctionality in this case |
@doujiang24 Hi, I fixed a same issue in #160, but a new version needs to be released. |
@junchuLF could you please try the 0.23 release? thanks~ |
Sorry, but is there any update on this? Timestamp is still -1. |
@petruxa77799 Hi, which version is using in your code ? I have two suggestions here:
local kafka_producer = require "resty.kafka.producer"
local producer_config = {
... ...
api_version = 2,
}
return kafka_producer:new(broker_list, producer_config, cluster_name) |
方法2中
这个代码还是没有解决,我的lua-resty-kafka是0.22的版本 |
apisix has already upgrade lua-resty-kafka here Update lua-resty-kafka to 0.23-0, but a new version is needed to be released. You can ask apisix community to release a new version. |
lua_resty_kafka
Version is 0.22 .api_version = 2
The message timestamp received by Kafka is -1
The text was updated successfully, but these errors were encountered: