drainer: large binlog may skipped when encountered "Message was too large" error #1136
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
-
What did you do?
a. Use drainer to sync binlog to kafka.
b. Insert a large amount of data in a transaction. -
What did you expect to see?
"Message was too large, server rejected it to avoid allocation error" occurred in drainer no matter how many times the drainer restarts. -
What did you see instead?
After several restarts, drainer didn't report any error. And save point was increased normally.
The root cause may be that the error item cannot be received from p.producer.Successes(). If there are small binlog after the large binlog, it can be write to kafka normally and return success item to syncer.
tidb-binlog/drainer/sync/kafka.go
Lines 195 to 200 in b607f34
-
Please provide the relate downstream type and version of drainer.
(rundrainer -V
in terminal to get drainer's version)
v4.0.6 (this issue may exist in all versions)
Activity