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

[WIP][db2] The first draft of DB2-CDC #450

Closed
wants to merge 1 commit into from

Conversation

leonardBang
Copy link
Contributor

The first draft that offers DB2-CDC to capture DB2 table changes.

tEnv.executeSql(sourceDDL);
tEnv.executeSql(sinkDDL);

// async submit job
Copy link

@kisstom kisstom Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we use this group by query for verification? Would not it be clearer to use only a few db updates (let's say 2 inserts, 1 update, 1 delete) and check that the related changes are captured? For me it seems a bit complicated to verify the output of this test.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I have come up with this is because for me it seems that debezium produces multiple updates for a simple insert query. Could you please double check this change I have applied on top of yours?
Could not figure it out why the second update shows up.
kisstom@bf7fe76

Also in the debezium log I can see the following, suggesting that it sends two records instead of one :

[debezium-engine] INFO io.debezium.connector.common.BaseSourceTask - 2 records sent during previous 00:00:10.16, last recorded offset: {transaction_id=null, event_serial_no=1, commit_lsn=00000000:00001581:0000000000046f82, change_lsn=00000000:00000000:0000000004412ada}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late reply @kisstom , I understand this test is mainly for checking

  1. The source cdc can receive changelog
  2. Flink SQL can process these changelog well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems that debezium produces multiple updates for a simple insert query.

It looks strange, are you sure it is like this?

@leonardBang leonardBang mentioned this pull request Nov 17, 2021
14 tasks
@1932937611
Copy link

go go go!

@wanghg158
Copy link

希望2.2支持DB2-CDC

@leonardBang leonardBang mentioned this pull request Dec 15, 2021
17 tasks
@waywtdcc
Copy link

go go go!Hope 2.2 support db2 cdc!

@waywtdcc
Copy link

@leonardBang Hello, do you need to compile and configure DB2 server-side UDF to use this?
image

@kisstom
Copy link

kisstom commented Jan 25, 2022

Hey @leonardBang,

why is this PR still in WIP and not merged back to master? Based on this work we were able to perform CDC for Db2 and it looked fine.

@leonardBang
Copy link
Contributor Author

Hey @leonardBang,

why is this PR still in WIP and not merged back to master? Based on this work we were able to perform CDC for Db2 and it looked fine.

Hey @kisstom. The priority of this PR is relatively low. From the issue list, there are very few user requirement for db2 cdc. Thus we spent effort on other database support like SqlServer and TiDB.

@leonardBang leonardBang mentioned this pull request Mar 31, 2022
13 tasks
leonardBang pushed a commit that referenced this pull request Oct 31, 2022
@leonardBang leonardBang added this to the V2.3.0 milestone Oct 31, 2022
@githsf
Copy link

githsf commented Apr 27, 2023

image
通过获取的Debezium里面并没有bldrtn执行文件,而通过Find 查找却能在DB2里找到多个bldrtn执行文件,所以应该选择哪个执行文件进行执行

@githsf
Copy link

githsf commented May 4, 2023

@leonardBang

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

Successfully merging this pull request may close these issues.

6 participants