SEPURI-SAI-KRISHNA opened a new issue, #13609: URL: https://github.com/apache/seatunnel/issues/13609
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened `MysqlCDCWithFlinkSchemaChangeIT#testSchemaEvolutionRecoversAfterTaskManagerFailureBeforeNextCheckpoint` fails intermittently in the mysql-cdc CI lanes, on JDK 11 and JDK 17. Every failure in the table below is the same: `{TestContainer}[3]`, line 245, the data check after the TaskManager stop, 10 source rows against 9 sink rows. What the test does (dev `5cf050be3f`): it starts the recovery job (MySQL-CDC to JDBC with `is_exactly_once = true` and `MysqlXADataSource`, checkpoint interval 30 s) on one TaskManager. Then it runs `ALTER TABLE products ADD COLUMN recovery_column INT NOT NULL DEFAULT 7` and inserts row 190, waits for the column in the sink, starts a second TaskManager and stops the first one, which the test means to happen before the next checkpoint. Line 245 then waits up to 5 minutes for the sink schema and then up to 5 minutes for the sink rows to equal the source. What the failures show: - The schema check passed. The error is at `assertTableStructureAndData:542`, the data wait; the schema wait is at line 537. - At the last poll the sink held rows 101 to 109, equal in every column including `recovery_column`, and lacked row 190. JUnit 5.9.0 reports "iterable lengths differ" only when every shared position is equal. A probe on the same JUnit jar gives that message for a missing 190, but "contents differ at index [4][0]" for a missing 105. The rows are ordered by `id`. Failed jobs. The test file at each head is identical to dev, and none of these heads contains #13109: | PR | Head | JDK | Job | |---|---|---|---| | #13393 | `b2408e367e` | 11 | [139801017890](https://github.com/SEPURI-SAI-KRISHNA/seatunnel/actions/runs/45787972918/job/139801017890) | | #13393 | `b2408e367e` | 17 | [139801017728](https://github.com/SEPURI-SAI-KRISHNA/seatunnel/actions/runs/45787972918/job/139801017728) | | #13297 | `17968289ff` | 17 | [139824279879](https://github.com/SEPURI-SAI-KRISHNA/seatunnel/actions/runs/45789850428/job/139824279879) | | #13310 | `e453034b33` | 17 | [140116244972](https://github.com/DanielLeens/seatunnel/actions/runs/45879148058/job/140116244972) | | #13443 | `0e72d81b73` | 11 | [140238537597](https://github.com/CloverDew/seatunnel/actions/runs/45807279475/job/140238537597) | | #12991 | `f996f97033` | 11 | [140358301911](https://github.com/yzeng1618/seatunnel-dev/actions/runs/45954113466/job/140358301911) | The #13393 head changes only Transform-V2 code, its docs and JDBC E2E files. The same test passed with the same file in: #13297 `17968289ff` (JDK 11 job 139824279915 in the run above, and both lanes of [run 45958921001](https://github.com/SEPURI-SAI-KRISHNA/seatunnel/actions/runs/45958921001)), #13393 `2484f6b27c` (both lanes of [run 45958928104](https://github.com/SEPURI-SAI-KRISHNA/seatunnel/actions/runs/45958928104)), #13310 (JDK 11 job 140116245093), and dev Build [45958367452](https://github.com/apache/seatunnel/actions/runs/45958367452) (`ee0fb0d72f`) and [46114535713](https://github.com/apache/seatunnel/actions/runs/46114535713) (`5cf050be3f`). The daily Schedule Backend mysql-cdc jobs of 11-26 and 11-27 ran about 4 hours, the 240 minute job limit, and were cancelled, so they give no result. On #13310, @DanielLeens wrote about that failure ([comment](https://github.com/apache/seatunnel/pull/13310#issuecomment-7195188942)): "Flink 1.18 terminated after JDBC XA restore reported a checkpoint XID missing from the recovery scan, and the sink then remained at 9 instead of 10 rows". He pointed to #13109 and #13110. #13109 merged on 2026-11-28 as `e32fd2bd38`, and #13110 is still open. I have not read those Flink logs myself, and I have not found the cause. The only completed run I found whose head contains #13109 is dev Build 46114535713, and it passed both lanes. One pass is not enough to say #13109 fixes this, so I propose keeping this issue open as the place to collect any failure on a head that contains #13109. ### SeaTunnel Version dev `5cf050be3f` ### SeaTunnel Config ```conf # seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/resources/mysqlcdc_to_mysql_with_flink_schema_change_recovery.conf # excerpt; this test passes parallelism 5, sink parallelism 5, checkpoint interval 30000 and unaligned checkpoints true source { MySQL-CDC { table-names = ["shop.products"] schema-changes.enabled = true incremental.parallelism = 1 } } sink { jdbc { primary_keys = ["id"] is_exactly_once = true xa_data_source_class_name = "com.mysql.cj.jdbc.MysqlXADataSource" } } ``` ### Running Command ```shell ./mvnw -B -T 1 verify -DskipUT=true -DskipIT=false -D"license.skipAddThirdParty"=true -D"skip.ui"=true --no-snapshot-updates -pl :connector-cdc-mysql-e2e -am -Pci ``` ### Error Exception ```log [ERROR] MysqlCDCWithFlinkSchemaChangeIT.testSchemaEvolutionRecoversAfterTaskManagerFailureBeforeNextCheckpoint:245->assertTableStructureAndData:542 ยป ConditionTimeout | `org.apache.seatunnel.connectors.seatunnel.cdc.mysql.MysqlCDCWithFlinkSchemaChangeIT#testSchemaEvolutionRecoversAfterTaskManagerFailureBeforeNextCheckpoint{TestContainer}[3]` | error | Assertion condition defined as a lambda expression in org.apache.seatunnel.connectors.seatunnel.cdc.mysql.MysqlCDCWithFlinkSchemaChangeIT iterable lengths differ, expected: <10> but was: <9> within 5 minutes. | ``` ### Zeta or Flink or Spark Version Flink, `{TestContainer}[3]` (Flink 1.18 per the #13310 comment above) ### Java or Scala Version JDK 11 and JDK 17 ### Screenshots _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
