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

[PR] [Test][E2E] Give the Doris e2e container a startup budget and wait for 2pc sink visibility [seatunnel]

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

   ## What does this PR do?
   
   Two test-only changes to `connector-doris-e2e` for flakes that keep failing unrelated PRs' `doris-connector-it` jobs.
   
   ### 1. Container startup budget (`AbstractDorisIT`)
   
   `apache/doris:doris-all-in-one-2.1.0` was started with the 60 s default of Testcontainers' port wait strategy. The all-in-one image only opens the exposed ports once FE is up, which on loaded runners takes longer than that: `Timed out waiting for container port to open (localhost ports: [...] should be listening)` after ~61 s, while the JDBC readiness loop that follows the start would still have had five minutes (fork runs 33971836407 `doris-connector-it (8)` and 34002072283 `doris-connector-it (8)`, three ITs each). The port wait now gets the same six-minute budget as the readiness loop.
   
   ### 2. Wait for 2pc visibility (`DorisIT`)
   
   `assertHasData` and the row count in `testCustomSql` read the sink table exactly once, right after `executeJob` returned. The sink jobs run with `sink.enable-2pc = true`, so rows become visible only after Doris has published the committed transaction, and on the Spark legs that publish lagged the job exit: empty sink table in `testDoris` and `testDorisDirectToBe` (Spark 2.4 leg, runs 34004664286 and 34002072283) and 1 of 101 rows in `testCustomSql` (Spark 3.3 leg, run 33994609465). Both checks now wait for visibility with Awaitility (60 s, 1 s poll). The assertions are unchanged; only the single read became a bounded wait.
   
   ## Does this PR introduce any user-facing change?
   
   No. Test-only.
   
   ## How was this patch tested?
   
   Test-only; validated by this PR's `doris-connector-it` jobs on both JDK legs.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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] [Test][E2E] Give the Doris e2e container a startup budget and wait for 2pc sink visibility [seatunnel]

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

   <img width="2824" height="1068" alt="image" src="https://github.com/user-attachments/assets/5eabfcca-4afb-4ece-b2b2-2cd9105ff91e" />
   
   please resolve conflicts 


-- 
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] [Test][E2E] Give the Doris e2e container a startup budget and wait for 2pc sink visibility [seatunnel]

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

   Heads-up: GitHub is currently reporting a real merge conflict against `dev` for this branch (`mergeStateStatus: DIRTY`), separate from the CI/code-review discussion above. The `Build` check shown as green right now is running against the current (pre-sync) head, not a `dev`-merged version, so it doesn't reflect the conflicting state.
   
   Could you please sync the latest `dev` into your branch and resolve the conflicts? Once that's pushed and CI is green on the updated head, I'll take another pass — my previous review's Issue 1 (the `Awaitility`/`ignoreExceptions()` + `try/finally` gap, and the overlap with #12136) is still open too, so it'd be worth addressing both in the same push.
   


-- 
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] [Test][E2E] Give the Doris e2e container a startup budget and wait for 2pc sink visibility [seatunnel]

Posted by "davidzollo (via GitHub) via commits" <co...@seatunnel.apache.org>.
davidzollo commented on PR #12142:
URL: https://github.com/apache/seatunnel/pull/12142#issuecomment-6886005014

   ### Implementation Notes and Trade-offs
   
   Head: `04798d7ffec1b657d6a9efebea89cfd98e41d2e9`
   
   I addressed the existing Doris E2E feedback by using the same source relation for the bounded sink wait and the row-by-row comparison. The unique-key cases now wait for the rows that satisfy `F_ID > 50`; the duplicate-key case still uses all source rows. This fixes the mismatch between the old unfiltered count (91) and the 45 qualifying rows actually written to the sink.
   
   The wait still requires a nonempty source and an exact matching sink count, then runs the original schema and full content assertions. It retries SQL query errors only while waiting for the sink. Sharing the predicate avoids a second copy that could drift; increasing the timeout alone would still wait for the wrong count. The original startup budget is unchanged, and the separately merged `testCustomSql` behavior comes from `dev`.
   
   Scoped Spotless apply/check and the diff whitespace check passed. GitHub confirms that the PR has no merge conflict and still changes only the two Doris test files. The updated [Build](https://github.com/apache/seatunnel/actions/runs/43653995528) was queued at readback; both Doris matrix legs still need to finish.
   


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