kcat
kcat copied to clipboard
Newline appended to message when producing from a file
Suppose I have a file containing the string 1
named 1.txt
. If I run
kafkacat -F /kafkacat.properties -P -t topic 1.txt
the message that appears on the topic will be 1.txt\n
, despite no newline being in my file. Note that this is not the case if I use the -l
flag
The impact of this bug is that I can't safely write binary data to a topic from a file. Also, if messages are copied multiple times (as in the case of a Dead Letter Queue), the number of newlines can grow quite large.
What version of kafkacat?
1.4.0
. I'll try it with the 1.6.0
version