logkit icon indicating copy to clipboard operation
logkit copied to clipboard

一行数据被截取成了两条

Open libinbin-1014 opened this issue 5 years ago • 1 comments

Bug Report

从文件中读取数据,写入kafka 由于日志文件使用flush刷新写入,一条数据如果如果只写进去了一半,这是logkit就已经将数据读取发送了,后半段的数据会变成第二条继续发送。

python代码写入数据 image

理论上我只写进去了2条数据,但是logkit确解析成了3条 image

libinbin-1014 avatar Jul 08 '20 02:07 libinbin-1014

新版会使用缓冲池存储最后一部分数据来保证读取到完整的一行。 the lastest version use buff to sotre data for a few seconds to ensure the whole line have been read. closed.

PapaPiya avatar Apr 30 '21 07:04 PapaPiya