Length of messages written to Kafka exceeds max-message-bytes #1059
Labels
area/ticdc
Issues or PRs related to TiCDC.
bug-from-user
Bugs found by users.
component/open-protocol
Open TiCDC protocol component.
component/sink
Sink component.
difficulty/hard
Hard task.
priority/P0
The issue has P0 priority.
type/bug
The issue is confirmed as a bug.
Milestone
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a recipe for reproducing the error.
Set
message-max-bytes
parameter in sink-uri to a number less than 4MB, when using the Kafka sink.What did you expect to see?
That replication works normally.
What did you see instead?
That CDC exits with error
CDC:ErrKafkaAsyncSendMessage
Analysis
This bug is caused by
mqSink
not limiting the message size according tomessage-max-bytes
, which is only used byKafkaProducer
but notmqSink
.mqSink
should make use of this value, and avoid issuing writes to Kafka that are large thanmessage-max-bytes
.Caveats
message-max-bytes
even on its own?The text was updated successfully, but these errors were encountered: