doujiang24 / lua-resty-kafka

Lua kafka client driver for the Openresty based on the cosocket API
BSD 3-Clause "New" or "Revised" License
801 stars 274 forks source link

The timestamp of kafka is -1 #158

Open junchuLF opened 11 months ago

junchuLF commented 11 months ago

lua_resty_kafka Version is 0.22 . api_version = 2
The message timestamp received by Kafka is -1

image
vantsiforov commented 10 months ago

in producer.lua in line 32 i've remove "not"

when it's if self.api_version then version = self.api_version. end

now it take api_version parama from produer init, and using message format with timestamp. not sure of other unctionality in this case

DG-Wangtao commented 8 months ago

@doujiang24 Hi, I fixed a same issue in #160, but a new version needs to be released.

doujiang24 commented 8 months ago

@junchuLF could you please try the 0.23 release? thanks~