Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Canal的binlog事件重试疑问 #809

Open
CC-Cheunggg opened this issue Jul 25, 2023 · 2 comments
Open

关于Canal的binlog事件重试疑问 #809

CC-Cheunggg opened this issue Jul 25, 2023 · 2 comments

Comments

@CC-Cheunggg
Copy link

如果 OnRow 里处理出错了,事件会重新投递吗?补偿机制是怎么样的呢?有没有相关的文档

@dveeden
Copy link
Collaborator

dveeden commented Oct 27, 2023

Translated:

If there is a processing error in OnRow, will the event be re-delivered? What is the compensation mechanism? Is there any relevant documentation?

I don't think there is any retry if OnRow() fails. @lance6716 do you know more about this?

@equnchen
Copy link
Contributor

@CC-Cheunggg 没有重试,业务方需要自己重试。另外,OnRow出错有一定概率是canal主从延时太大,最新DB表结构和binlog中的老数据对不上,此时重试的意义不大,建议业务方自行实现补偿机制(例如查一下最新DB数据)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants