You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Patrik Kleindl <pk...@gmail.com> on 2018/08/21 10:29:24 UTC
Improve error message when trying to produce message without key for
compacted topic
Hello
Yesterday we had the following exception:
Exception thrown when sending a message with key='null' and payload='...'
to topic sometopic:: org.apache.kafka.common.errors.CorruptRecordException:
This message has failed its CRC checksum, exceeds the valid size, or is
otherwise corrupt.
The cause was identified with the help of
https://stackoverflow.com/questions/49098274/kafka-stream-get-corruptrecordexception
Is it possible / would it makes sense to open an issue to improve the error
message for this case?
A simple "Message without a key is not valid for a compacted topic" would
suffice and point a user in the right direction.
best regards
Patrik
Re: Improve error message when trying to produce message without key
for compacted topic
Posted by "Matthias J. Sax" <ma...@confluent.io>.
That makes sense to me.
Please file a Jira. Thanks a lot for reporting this issue!
-Matthias
On 8/21/18 3:29 AM, Patrik Kleindl wrote:
> Hello
>
> Yesterday we had the following exception:
>
> Exception thrown when sending a message with key='null' and payload='...'
> to topic sometopic:: org.apache.kafka.common.errors.CorruptRecordException:
> This message has failed its CRC checksum, exceeds the valid size, or is
> otherwise corrupt.
>
> The cause was identified with the help of
> https://stackoverflow.com/questions/49098274/kafka-stream-get-corruptrecordexception
>
> Is it possible / would it makes sense to open an issue to improve the error
> message for this case?
> A simple "Message without a key is not valid for a compacted topic" would
> suffice and point a user in the right direction.
>
> best regards
>
> Patrik
>