You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
I have checked the FAQ of this repository and believe that this is not a duplicate.
environment
canal version = 1.1.4
mysql version = 5.7
Issue Description
I have been continuing suffering a data loss when using canal. I found there always been some exceptions (like connect problems) happened with data loss.
The question is : why you guys didn't do this in the code of examples? Is this irregular?
Steps to reproduce
Expected behaviour
Actual behaviour
If there is an exception, please attach the exception trace:
Just put your stack trace here!
The text was updated successfully, but these errors were encountered:
hxy91819
changed the title
canal client need rollback when meeting exception
canal client need do connector.rollback() when catching exception
May 21, 2020
environment
Issue Description
I have been continuing suffering a data loss when using canal. I found there always been some exceptions (like connect problems) happened with data loss.
So I check the client code in AbstractCanalClientTest.java
In line 79, we got
// connector.rollback(batchId); // 处理失败, 回滚数据
I think it will be good if we add
connector.rollback(batchId)
when we got an exception.Such as:
The question is : why you guys didn't do this in the code of examples? Is this irregular?
Steps to reproduce
Expected behaviour
Actual behaviour
If there is an exception, please attach the exception trace:
The text was updated successfully, but these errors were encountered: