You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "nzw921rx (via GitHub)" <gi...@apache.org> on 2026/04/09 14:28:23 UTC

[PR] [Feature][E2E] Add MySQL CDC multi-database multi-table E2E test [seatunnel]

nzw921rx opened a new pull request, #10743:
URL: https://github.com/apache/seatunnel/pull/10743

   ## [Test][E2E] Add MySQL CDC multi-database multi-table E2E test
   
   ### Summary
   
   Add E2E tests for MySQL-CDC `database-names` configuration, which was previously untested. The new tests verify that a single CDC job can capture changes from **two different source databases** and correctly route them to a sink database.
   
   - `testMysqlCdcMultiDatabaseMultiTableE2e`: validates snapshot + incremental sync across databases
   - `testMultiDatabaseWithRestore`: validates checkpoint savepoint/restore works correctly with multi-database CDC
   
   Closes #10722
   
   ### Changes
   
   - **New**: `ddl/mysql_cdc_multi_db.sql` — DDL for 3 databases (`mysql_multi_cdc_db_a`, `mysql_multi_cdc_db_b`, `mysql_multi_cdc_db_sink`)
   - **New**: `mysqlcdc_to_mysql_with_multi_db_multi_table.conf` — job config using `database-names`
   - **Modified**: `AbstractMysqlCDCITBase.java` — 2 new test methods + `initializeMultiDbTables()` helper
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature][E2E] Add MySQL CDC multi-database multi-table E2E test [seatunnel]

Posted by "CloverDew (via GitHub)" <gi...@apache.org>.
CloverDew commented on PR #10743:
URL: https://github.com/apache/seatunnel/pull/10743#issuecomment-4275197639

   LGTM


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature][E2E] Add MySQL CDC multi-database multi-table E2E test [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #10743:
URL: https://github.com/apache/seatunnel/pull/10743


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature][E2E] Add MySQL CDC multi-database multi-table E2E test [seatunnel]

Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx commented on PR #10743:
URL: https://github.com/apache/seatunnel/pull/10743#issuecomment-4220757198

   > Pulled this locally and I still see one blocking problem in the new E2E assertions.
   > 
   > In `AbstractMysqlCDCITBase`, the new multi-database checks compare the sink side with `getSourceQuerySQL(MULTI_DATABASE_SINK, ...)` instead of `getSinkQuerySQL(...)`. That means the test is not validating the sink query path that the rest of this suite uses, so sink-side conversion / normalization differences can still be missed while the new test passes.
   > 
   > Please switch the sink assertions to `getSinkQuerySQL(...)` in both the snapshot and incremental/restore checks.
   
   @DanielLeens  thanks, fixed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org