[Fix][E2E] Fix flaky CI failure in KingbaseDialectContainerTest#10674
[Fix][E2E] Fix flaky CI failure in KingbaseDialectContainerTest#10674Carl-Zhou-CN merged 1 commit intoapache:devfrom
KingbaseDialectContainerTest#10674Conversation
d73e26a to
8ca3c16
Compare
|
I still see the same intermittent NPE in CI. My guess is that the CI runner is more timing-sensitive, so although the Kingbase container port is already open, the database itself is not yet fully ready to execute SQL. In that case, the test starts its initialization too early and occasionally fails. We may need an extra readiness check after container startup, and only expose the connection / continue with downstream test setup once the database can actually execute SQL successfully. |
8ca3c16 to
3abb02d
Compare
3abb02d to
6185426
Compare
Thanks, this was very helpful! |
…ache#10674) (cherry picked from commit b7a0fc5)
Purpose of this pull request
KingbaseDialectContainerTestwere occasionally failing withNullPointerExceptionin CI.The previous test structure relied on shared static state and reused JDBC connections across test execution, which made the tests sensitive to lifecycle ordering and shared resource state.
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
incompatible-changes.mdto describe the incompatibility caused by this PR.