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

[tidb-cdc]When the task runs for a period of time, there are only Resolved Events

Open wangxiaojing opened this issue 3 years ago • 3 comments

Environment :

Flink version : 1.14.4 Flink CDC version: 2.2 ,2.3 ,master Database and version: tidb5.0 and tidb5.1 To Reproduce flink-tidb-cdc table: A

flink-jdbc table: B

query: insert into A select * from B;

desc: The task data is normal at the beginning of the program startup, but after running for a period of time, the data is not updated. but there is no error message.

The log: 2022-10-31 17:56:03,786 INFO org.tikv.cdc.CDCClient [] - handle resolvedTs: 437049141169750048, regionId: 1721083 2022-10-31 17:56:04,787 INFO org.tikv.cdc.CDCClient [] - handle resolvedTs: 437049141431894020, regionId: 1721083 2022-10-31 17:56:05,787 INFO org.tikv.cdc.CDCClient [] - handle resolvedTs: 437049141694038029, regionId: 1721083 2022-10-31 17:56:06,789 INFO org.tikv.cdc.CDCClient [] - handle resolvedTs: 437049141956182110, regionId: 1721083 2022-10-31 17:56:07,790 INFO org.tikv.cdc.CDCClient [] - handle resolvedTs: 437049142218326018, regionId: 1721083 2022-10-31 17:56:08,793 INFO org.tikv.cdc.CDCClient [] - handle resolvedTs: 437049142480470176, regionId: 1721083

The solutions: 1.COMMITTED ' data: type: COMMITTED, data: start_ts: 437500764314664991 commit_ts: 437500764314664996 type: COMMITTED

2.PREWRITE' data: ** start_ts: 437503701009039388 ** type: PREWRITE op_type: PUT key: "xxxxx"

3.COMMIT' data: ** start_ts: 437503701009039388 ** commit_ts: 437503701009039391 type: COMMIT op_type: PUT key: "xxxx"

wangxiaojing avatar Nov 20 '22 12:11 wangxiaojing

Hi @wangxiaojing , sorry for the delay of this PR. Could you please rebase it to latest master branch since there’s been lots of changes in Flink CDC repo since your original commit? Kindly reminder that com.ververica.cdc.connectors.tidb package has been moved to org.apache.flink.cdc.connectors.tidb.

Thanks for your contribution!

yuxiqian avatar Apr 25 '24 08:04 yuxiqian

This pull request has been automatically marked as stale because it has not had recent activity for 60 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 17 '24 00:07 github-actions[bot]