[error] 23476#23476: *11538 lua entry thread aborted: runtime error:
/usr/local/openresty/lualib/resty/kafka/producer.lua:168: attempt to
perform arithmetic on local ‘index’ (a string value) stack traceback:
coroutine 0:
/usr/local/openresty/lualib/resty/kafka/producer.lua: in function ‘_send’
利用脚本给kafka发数据时,始终无法消费到数据,一番折腾,最终才发现当时测试log滚动时,把kafka的log滚动大小设为了1kb,结果就是一条消息都很难放的下.
结论就是瞎改的东西要及时改回去.