flink-cdc icon indicating copy to clipboard operation
flink-cdc copied to clipboard

[Bug] mysql long transaction will restart infinitely, no longer consume binlog

Open someorz opened this issue 3 years ago • 3 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Flink version

1.13.2

Flink CDC version

2.3

Database and its version

mysql 5.7

Minimal reproduce step

mysql, insert a large amount of data in a transaction, commit for a long time

What did you expect to see?

Can consume binlog normally

What did you see instead?

Anything else?

No response

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

someorz avatar May 10 '23 01:05 someorz

2023-05-10T08:19:49.639925+08:00 89795485 [Note] Start binlog_dump to master_thread_id(89795485) slave_server(5421), pos(./mysql-bin.240254, 4) with GTID 2023-05-10T08:19:49.639944+08:00 89795485 [Note] Start asynchronous binlog_dump to slave (server_id: 5421), pos(./mysql-bin.240254, 4) binlog end pos(mysql-bin.240258, 337795371) 2023-05-10T08:19:49.952178+08:00 89795485 [Note] Stop asynchronous binlog_dump to slave (server_id: 5421) 2023-05-10T08:19:49.952214+08:00 89795485 [Note] Aborted connection 89795485 to db: 'unconnected' user: '' host: '10.60.238.66' (Failed on my_net_write())

someorz avatar May 16 '23 05:05 someorz

image 我猜是这个块的代码造成的,当接收一个特别大的事务,eventLastSeen超过1分钟没有被更新,然后就会断开连接,重连,重连上继续接收那个特别大的事务,然后再超时重连。就这样无限循环下去。

someorz avatar Oct 07 '23 06:10 someorz

Considering collaboration with developers around the world, please re-create your issue in English on Apache Jira under project Flink with component tag Flink CDC. Thank you!

为了方便各个国家的贡献者交流,请在 Apache Jira 的 Flink 项目下重新用英文创建问题,同时在问题上将 Component 标注为 Flink CDC。谢谢!

ruanhang1993 avatar Feb 05 '24 07:02 ruanhang1993