Skip to content

[Feature][MySQL-CDC] Add multi-database multi-table e2e testcase #10722

@zhangshenghang

Description

@zhangshenghang

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

MySQL-CDC already has multi-table E2E coverage, but the current testcase only covers two tables from the same source database.

Current coverage references:

  • testMysqlCdcMultiTableE2e in seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/java/org/apache/seatunnel/connectors/seatunnel/cdc/mysql/AbstractMysqlCDCITBase.java
  • /mysqlcdc_to_mysql_with_multi_table_mode_two_table.conf uses table-names = ["mysql_cdc.mysql_cdc_e2e_source_table", "mysql_cdc.mysql_cdc_e2e_source_table2"] with a single source URL jdbc:mysql://mysql_cdc_e2e:3306/mysql_cdc

The connector documentation exposes database-names and table-names, but we do not have an E2E testcase that validates one CDC job reading tables from more than one source database in multi-table mode.

It would be helpful to add a dedicated E2E testcase under seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e to cover this scenario.

Suggested scope:

  • prepare at least two source databases and multiple source tables
  • run one MySQL-CDC job that captures tables from multiple databases
  • verify snapshot stage and incremental insert/update/delete events
  • verify sink-side table routing is correct for all captured tables
  • if possible, extend restore/checkpoint coverage for the same scenario

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions