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

[I] [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs [seatunnel]

SEZ9 opened a new issue, #12344:
URL: https://github.com/apache/seatunnel/issues/12344

   ### 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. (Searched for both `OpengaussCDCIT` and `testAddFieldWithRestore`; no existing report.)
   
   ### What happened
   
   `OpengaussCDCIT.testAddFieldWithRestore` fails on every CI run of the `all-connectors-it-2` job on current `dev`, on both JDK 8 and JDK 11. It is not intermittent: across two unrelated pull requests, two different base commits, and four rerun attempts each, it has failed **24 of 24 legs** with no single pass.
   
   Because `all-connectors-it-2` is part of the `Build` workflow — the only required status check on `refs/heads/dev` — any pull request whose change set schedules that job currently cannot reach a green `Build`, regardless of what it changes.
   
   **Evidence.** These are runs of two unrelated Zeta pull requests, #12298 (`JettyService` constructor + one `HttpConfig` field) and #12299 (REST log-content reading), neither of which touches CDC, PostgreSQL, or openGauss:
   
   | Run | Base | JDK 8 | JDK 11 |
   |---|---|---|---|
   | [34926657845](https://github.com/SEZ9/seatunnel/actions/runs/34926657845) (#12298) | `0d9f9e230` | failed 4/4 attempts | failed 4/4 attempts |
   | [34993525332](https://github.com/SEZ9/seatunnel/actions/runs/34993525332) (#12298) | `75b60fa14` | failed 4/4 attempts | failed 4/4 attempts |
   | [34993534806](https://github.com/SEZ9/seatunnel/actions/runs/34993534806) (#12299) | `75b60fa14` | failed 4/4 attempts | failed 4/4 attempts |
   
   The failure is always the same assertion at the same line, and the other 14 tests in the class pass every time (`Tests run: 15, Failures: 0, Errors: 1`).
   
   I have not bisected which change introduced it, and I am not proposing a cause — reporting it because the 100% failure rate makes it a hard blocker for unrelated work rather than background flakiness, and because nothing in the tracker covers it yet.
   
   ### SeaTunnel Version
   
   `dev` @ `75b60fa14` (3.0.0-SNAPSHOT), also reproduced on `0d9f9e230`.
   
   ### SeaTunnel Config
   
   ```conf
   Not applicable - this is an e2e test failure in CI, not a job configuration problem.
   The configuration used is the one built into OpengaussCDCIT.
   ```
   
   ### Running Command
   
   ```shell
   # As run by the all-connectors-it-2 job of the Build workflow:
   ./mvnw -B -T 1C verify -pl :connector-cdc-opengauss-e2e -am -DskipUT=true -DskipIT=false
   ```
   
   ### Error Exception
   
   ```log
   [ERROR] Tests run: 15, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 638.34 s <<< FAILURE! - in org.apache.seatunnel.connectors.seatunnel.cdc.postgres.OpengaussCDCIT
   [ERROR] testAddFieldWithRestore{TestContainer}[1]  Time elapsed: 89.482 s  <<< ERROR!
   org.awaitility.core.ConditionTimeoutException:
   Assertion condition defined as a lambda expression in org.apache.seatunnel.connectors.seatunnel.cdc.postgres.OpengaussCDCIT Multiple Failures (1 failure)
   	org.opentest4j.AssertionFailedError: actual iterable was <null> at index [1][4] within 1 minutes.
   	at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.OpengaussCDCIT.testAddFieldWithRestore(OpengaussCDCIT.java:476)
   Caused by: java.util.concurrent.TimeoutException
   	at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.OpengaussCDCIT.testAddFieldWithRestore(OpengaussCDCIT.java:476)
   
   [ERROR] Errors:
   [ERROR]   OpengaussCDCIT.testAddFieldWithRestore:476 » ConditionTimeout Assertion condit...
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.22.2:verify (default) on project connector-cdc-opengauss-e2e: There are test failures.
   ```
   
   `actual iterable was <null> at index [1][4]` means the expected row is absent rather than wrong: after the DDL is applied and the job is restored, the awaited snapshot never reaches the expected size within the one-minute window. Whether that is a product bug in restore-after-schema-change or too short a wait in the test, I can't say from the log alone.
   
   ### Zeta or Flink or Spark Version
   
   Zeta (SeaTunnel Engine), 3.0.0-SNAPSHOT.
   
   ### Java or Scala Version
   
   Reproduced on both JDK 8 and JDK 11 (`ubuntu-latest` GitHub runners).
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   I don't know this connector's restore path well enough to propose a fix, so I would rather report it than guess. Happy to run experiments on the two branches above if that helps someone who does.
   
   ### 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: commits-unsubscribe@seatunnel.apache.org.apache.org

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


Re: [I] [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #12344:
URL: https://github.com/apache/seatunnel/issues/12344#issuecomment-5723587076

   Quantifying the blast radius, since my previous comment argued it from the workflow gate rather than from data. I surveyed the `Build` status of the 40 most recently updated open pull requests on 2026-09-17:
   
   ```
   FAILURE          15
   SUCCESS          12
   IN_PROGRESS       6
   ACTION_REQUIRED   3
   CANCELLED         3
   QUEUED            1
   ```
   
   The split between the 15 red and the 12 green is not random — it lines up exactly with the `if: api == 'true' || engine == 'true'` gate:
   
   - **All 12 green PRs touch only connectors, docs, or connector e2e** (#12312, #12315, #12323, #12324, #12325, #12326, #12328, #12329, #12341, #12347, #12349, #12370). None of them sets `engine` or `api`, so `all-connectors-it-2` is skipped and they never reach `testAddFieldWithRestore`.
   - **Every Zeta/engine PR in the window is red**: #12311, #12313, #12314, #12316, #12338.
   
   I drilled into two of them at job level, and the failure lists match my own PRs exactly:
   
   ```
   #12316   FAIL all-connectors-it-2 (8, ubuntu-latest)
            FAIL all-connectors-it-2 (11, ubuntu-latest)
            FAIL all-connectors-it-7 (11, ubuntu-latest)
   
   #12338   FAIL all-connectors-it-2 (8, ubuntu-latest)
            FAIL all-connectors-it-2 (11, ubuntu-latest)
            FAIL all-connectors-it-1 (8, ubuntu-latest)
            FAIL all-connectors-it-1 (11, ubuntu-latest)
            FAIL engine-v2-it (8, ubuntu-latest)
   ```
   
   To be precise about what I checked: I verified per-job failures for 2 of the 15, not all 15. For the rest I have only `Build=FAILURE`.
   
   The part that seems worth a maintainer's attention is the compounding effect. Two of the blocked PRs are themselves fixes for the *other* flaky tests currently failing alongside this one:
   
   - **#12311** — `[Fix][Zeta] Resolve a CANCELING vertex to CANCELED, not FAILED`, the fix for `SplitClusterFaultToleranceIT` (#12353). `Build=FAILURE`.
   - **#12313** — `[Test][E2E] Make BackpressureSlowSinkIT barrier injection deterministic`. `Build=FAILURE`.
   
   So the flaky-test cleanup that would make `engine-v2-it` trustworthy again cannot merge, because an unrelated Opengauss CDC test in a different job blocks it. That is a fairly tight deadlock, and this issue is the only edge in it that a single change can cut.
   
   My earlier offer stands and I still don't want to act on it unasked: if quarantining is preferable to a fix in the short term, I'll send the mechanical `@Disabled` PR with a link back here. Equally happy to leave it if someone is already looking at the restore path — I only want to make sure the cost of waiting is visible.
   


-- 
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: [I] [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #12344:
URL: https://github.com/apache/seatunnel/issues/12344#issuecomment-5704346488

   Additional data after four more rerun rounds on both branches, and a methodology note that *strengthens* rather than weakens this one.
   
   The note first: GitHub carries unchanged job records forward into a new attempt created by `gh run rerun --failed`, so a job's presence in an attempt does not mean it ran there. A job only really executed if its `started_at` is distinct from the previous attempt's. I have since found that this inflated the counts in a different issue I filed (#12345), so I re-checked this one. It does not affect these numbers: `all-connectors-it-2` **failed on every attempt**, which means `--failed` re-scheduled it every time, so every attempt is a genuine execution. Spot-checking `started_at` on run [34993534806](https://github.com/SEZ9/seatunnel/actions/runs/34993534806) confirms it — a1 `2026-09-15T16:17:09Z`, a4 `2026-09-16T05:25:06Z`, a8 `2026-09-16T18:40:58Z`, all distinct.
   
   Updated tally for `OpengaussCDCIT.testAddFieldWithRestore`:
   
   | Run | Base | Real executions | Failures |
   |---|---|---|---|
   | [34926657845](https://github.com/SEZ9/seatunnel/actions/runs/34926657845) (#12298) | `0d9f9e230` | 4 attempts × 2 JDKs = 8 | 8 |
   | [34993525332](https://github.com/SEZ9/seatunnel/actions/runs/34993525332) (#12298) | `75b60fa14` | 8 attempts × 2 JDKs = 16 | 16 |
   | [34993534806](https://github.com/SEZ9/seatunnel/actions/runs/34993534806) (#12299) | `75b60fa14` | 8 attempts × 2 JDKs = 16 | 16 |
   | | | **40** | **40** |
   
   **40 of 40**, across two unrelated pull requests, two base commits, and both JDKs, with the same assertion at `OpengaussCDCIT.java:476` every time and the other 14 tests in the class passing every time. No pass has ever been observed. Rerunning is not a workaround for this one.
   


-- 
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: [I] [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #12344:
URL: https://github.com/apache/seatunnel/issues/12344#issuecomment-5707559623

   One more fact about blast radius, because I initially described this as blocking two specific pull requests and that understates it.
   
   `all-connectors-it-2` is gated on:
   
   ```yaml
     all-connectors-it-2:
       needs: [ changes, sanity-check ]
       if: needs.changes.outputs.api == 'true' || needs.changes.outputs.engine == 'true'
   ```
   
   `engine` is set by any change under `seatunnel-engine/**`, and `api` by the core API modules. So **every pull request that touches the Zeta engine or the core API currently schedules this job**, and since `testAddFieldWithRestore` has never once passed (40 real executions, both JDKs, two bases), none of them can reach a green `Build`. `Build` is the only required status check on `refs/heads/dev`, so those PRs sit at `mergeStateStatus=BLOCKED` with `Build=FAILURE` as the sole failing check, regardless of what they change — a Zeta PR cannot avoid the job by being scoped more narrowly.
   
   That is the practical reason I filed this rather than treating it as background flakiness. There is nothing a contributor can do from their side: rerunning does not help, and narrowing the change does not deschedule the job.
   
   I don't know this connector's restore path, so I'm not the right person to fix it. But if quarantining is preferable to a fix in the short term — e.g. `@Disabled` on `testAddFieldWithRestore` with a link back to this issue — I'm happy to send that mechanical PR if a maintainer decides that's the right call. I'd rather not do it unasked, since disabling a test that may be reporting a genuine restore-after-schema-change bug is a maintainer's judgement, not mine.
   


-- 
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: [I] [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #12344:
URL: https://github.com/apache/seatunnel/issues/12344#issuecomment-5724451685

   Thanks for the detailed report and the run table — the stack trace and the 24/24 failure count make it clear this is not ordinary flakiness.
   
   Two things would help narrow it down:
   
   1. The linked runs are on your fork. Have you seen the same failure in an `all-connectors-it-2` leg on the apache/seatunnel repository itself? That would rule out a runner-environment difference.
   2. Does it reproduce locally with the same command you quoted (`./mvnw -B -T 1C verify -pl :connector-cdc-opengauss-e2e -am -DskipUT=true -DskipIT=false`)? If so, the Zeta server and openGauss container log excerpts around the restore step would be very useful, since `actual iterable was <null> at index [1][4]` only tells us the row never arrived, not why.
   
   If it turns out to be a regression, we can discuss temporarily disabling this single test with a link back here so unrelated PRs can proceed while the root cause is fixed.
   
   <!-- streview-comment:1135 -->


-- 
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: [I] [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs [seatunnel]

Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx closed issue #12344: [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs
URL: https://github.com/apache/seatunnel/issues/12344


-- 
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: [I] [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #12344:
URL: https://github.com/apache/seatunnel/issues/12344#issuecomment-5723706105

   @davidzollo — pinging you specifically because this one needs a committer's decision and I think you already have a stake in it rather than because I want to hurry anyone.
   
   Your #12314 fails `all-connectors-it-2` on both JDK 8 and JDK 11, the same job and the same test as the pull requests I mentioned above:
   
   ```
   FAIL Run / all-connectors-it-2 (8, ubuntu-latest)
   FAIL Run / all-connectors-it-2 (11, ubuntu-latest)
   ```
   
   To be fair to the facts: #12314 has other failing jobs too (`unit-test` on four platforms, `engine-v2-it`, `all-connectors-it-7`, `rocketmq-connector-it`), so this issue is not the only thing standing between it and a green `Build` — but it is one of them, and it is the one no amount of work on the PR can clear.
   
   The decision I'm asking for is narrow. `testAddFieldWithRestore` has failed 40 of 40 real executions and has never been observed passing, so it is not flakiness that reruns absorb. Either:
   
   1. someone who knows the Opengauss CDC restore path fixes it — it may well be reporting a genuine bug, which is exactly why I don't want to silence it on my own judgement; or
   2. it gets quarantined with `@Disabled` and a link back to this issue, so `all-connectors-it-2` stops gating every Zeta and core-API pull request while the fix is worked out.
   
   If (2) is the call, say the word and I'll open that PR — it's a two-line mechanical change and I can have it up within the hour. If (1), I'll stop bringing it up and wait; I just didn't want the choice to go unmade by default, since #12311 and #12313 — the fixes for the two *other* tests currently failing in `engine-v2-it` — are blocked behind this same job.
   


-- 
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: [I] [Bug][E2E] OpengaussCDCIT.testAddFieldWithRestore fails on every CI run, blocking unrelated PRs [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #12344:
URL: https://github.com/apache/seatunnel/issues/12344#issuecomment-5724020502

   This is a regression on `dev` itself, not a test that has always been broken. I can now date it, and the bisect window contains two commits that are suspicious on subject matter alone. This also corrects the framing in my own earlier comments.
   
   ### It reproduces on plain `dev`, with no pull request involved
   
   Every complete `Build` run on `apache/seatunnel@dev` since 2026-09-14 fails `all-connectors-it-2` on both JDKs with this exact test. Most `dev` runs are `cancelled` by the next merge before they finish, which is why this is easy to miss — but the ones that finish are unambiguous:
   
   | `dev` run | Date | Head | `OpengaussCDCIT` |
   |---|---|---|---|
   | [34145973469](https://github.com/apache/seatunnel/actions/runs/34145973469) | 09-07 17:03 | `8bea8c681` | `Tests run: 23, Failures: 0, Errors: 0` in 707 s — **pass** |
   | [34752507232](https://github.com/apache/seatunnel/actions/runs/34752507232) | 09-13 10:41 | `333913255` | *no data* — job died earlier on `IcebergSourceIT.startUp:161 » ContainerFetch`, never reached this class |
   | [34801745423](https://github.com/apache/seatunnel/actions/runs/34801745423) | 09-14 03:11 | `46e58fc16` | `Errors: 1` — `testAddFieldWithRestore:476` in 754 s |
   | [34821874806](https://github.com/apache/seatunnel/actions/runs/34821874806) | 09-14 08:16 | `bd09f6d9a` | same failure, 799 s |
   | [34935118103](https://github.com/apache/seatunnel/actions/runs/34935118103) | 09-15 06:01 | `f4a9665e8` | same failure, 786 s |
   | [34995029902](https://github.com/apache/seatunnel/actions/runs/34995029902) | 09-15 16:26 | `1325a44b2` | same failure, 892 s |
   | [35063682504](https://github.com/apache/seatunnel/actions/runs/35063682504) | 09-16 06:26 | `b37af3a9b` | same failure, 920 s |
   | [35219017572](https://github.com/apache/seatunnel/actions/runs/35219017572) | 09-17 12:03 | `c7304ace6` | same failure, 923 s |
   
   For context, `all-connectors-it-2` did pass on `dev` on 2026-06-16, 07-29, 08-04, 09-03 and 09-07, so this job is not chronically red — earlier red `dev` runs failed elsewhere (Docker Hub image fetches, for instance).
   
   **Correction to my own earlier wording.** I wrote that this test "has never been observed passing". That was true of every base I had measured, but all of those were after 09-13. It passed on `dev` a week earlier, in 707 seconds. So this is a regression with a date, not a permanently broken test.
   
   ### Bisect window: `8bea8c681...46e58fc16`, 81 commits
   
   The 09-13 run cannot tighten it, because that job died on an unrelated Docker image fetch before reaching this class. Within those 81 commits, two stand out because their subject lines describe precisely the mechanism this test exercises — add a column, savepoint, restore, expect the restored job to keep syncing:
   
   - **`5af8d789a` — [#11864](https://github.com/apache/seatunnel/pull/11864) `[Fix][Connector-V2] Fix Postgres-CDC committed-offset recovery skipping rows after savepoint`.** Touches `IncrementalSourceStreamFetcher`, `LsnOffset` and `PostgresWalFetchTask`. Opengauss CDC runs on `connector-cdc-postgres` — the test class is literally `org.apache.seatunnel.connectors.seatunnel.cdc.postgres.OpengaussCDCIT` — and the failing assertion is a row comparison after a savepoint and restore, which is the same scenario the commit title names.
   - **`ec1b1b8b5` — [#11503](https://github.com/apache/seatunnel/pull/11503) `[Fix][CDC][Zeta] Restore runtime schema from checkpoint after failover`.** 46 files, +1425/-92, including `AlterTableSchemaEventHandler`, `TableSchemaChangeEventDispatcher`, the new `RestoreTableSchemaEvent`, `SeaTunnelRowDebeziumDeserializeSchema` and `IncrementalSourceReader`. Schema restore from a checkpoint is exactly what fails here.
   
   Three more in the window that touch the checkpoint/restore path, listed for completeness rather than because I have a specific reason to suspect them: `ff4a0b8ec` (#12150, `CheckpointCoordinator` duplicate schema-change completion), `dab424cd1` (#12238, `TaskExecutionService` cleanup isolation) and `46e58fc16` (#12260, empty barrier counters).
   
   One weak signal, offered only to be ruled out: the class's elapsed time grows monotonically across the failing runs — 707 s when passing, then 754, 786, 799, 892, 920, 923. Same 23 tests each time. That may be nothing more than runner variance, but a restore path that has become slow enough to exceed the test's `atMost(60000, MILLISECONDS)` window would look exactly like this.
   
   ### What this changes about the fix
   
   My earlier offer to send an `@Disabled` quarantine PR now looks like the wrong instinct, and I'd rather say so than let it stand. If this is a regression from #11864 or #11503, the test is doing its job and silencing it would bury a real defect in CDC savepoint/restore — a data-correctness area. Reverting or fixing the responsible change is the better outcome, and identifying it does not require Opengauss expertise, only a bisect.
   
   I'm happy to run that bisect. The mechanism works: push a branch that is a target commit plus a comment-only change under `seatunnel-engine/` (enough for change detection to schedule `all-connectors-it-2`, invisible to spotless), read the one job, then cancel and delete the ref. I used it to confirm a different `dev`-level failure in #12353. Two or three runs across the window should isolate it. Say the word and I'll start, or tell me if someone closer to CDC would rather take it from the two candidates above — they may recognise the cause without any bisect at all.
   
   The quarantine option is of course still available if the community would rather unblock the Zeta and core-API pull requests first and fix afterwards. I just no longer think it should be the default.
   


-- 
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