Repository navigation
Run 04869_postgresql_tls_trailing_arguments sequentially - #114818
Conversation
The test registers a PostgreSQL database pointing at the unreachable 127.0.0.1:1 and ran in the parallel group. Because show_remote_databases_in_system_tables defaults to true, that database is visible in system.tables, system.columns and system.completions, so a concurrently running test that scans those tables without a database filter tries to connect to the unreachable host. The connection failure is logged on the scanning query's own thread, so it is streamed to that client's stderr, and clickhouse-test fails any test whose stderr is non-empty. The polluter stays green while an unrelated test goes red, which makes the failure unattributable from the victim's side. Observed once on master since the test landed: 00938_fix_rwlock_segfault_long in Stateless tests (arm_binary, parallel), whose entire body is an unfiltered system.tables and system.columns scan repeated 100 times. Neither alternative to the tag is available. The visibility setting is read from the scanning query's context, so the test cannot hide the object it creates; and a blackholed address only converts an instant connection refusal into a connect timeout while still logging, which is why the sibling test 04210_show_remote_databases_in_system_tables uses 192.0.2.1 and no-parallel. The justification comment follows that test's style. No test statement is changed and the reference file is unchanged.
The no-parallel tag added in the previous commit routes this test through clickhouse-test's sequential group, which runs one test at a time in the parent process after every parallel worker has joined, and sizes its repetitions from --sequential-test-runs. The comment above the test body still said the flaky check runs it many times in parallel, which was true before the tag and is false after it. Keep the reason the database name comes from a macro, since concurrent independent clickhouse-test invocations still share one server, and drop the claim about parallel repetitions.
Internal second-model reviewTwo rounds. Round 1 raised one issue and it was fixed before this PR was opened; round 2 is clean.
|
Pre-PR validation gate
Stability: 10 consecutive post-fix runs, 10/10 OK, all in the sequential group. |
|
Workflow [PR], commit [a69316d] Summary: ✅ AI ReviewSummaryThis PR moves Final Verdict✅ Approved. No inline findings to post. |
|
cc @GrigoryPervakov, could you review this? The test registers a PostgreSQL database at an unreachable host and ran in the parallel group, so a concurrent unfiltered |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Object file sizes3 object files changed (+26.80 KiB total), 0 added.
737 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units31 translation units recompiled, 381 s compile time in total, 31 of them have a recent master baseline. |
CI finish ledger - a69316dCI finished with no failing checks on this commit (praktika top-level status
Session id: cron:our-pr-ci-monitor:20260814-180000 |
4163b18
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Related: #114580
04869_postgresql_tls_trailing_argumentsregisters a PostgreSQL database pointing at theunreachable
127.0.0.1:1and ran in the parallel group. Sinceshow_remote_databases_in_system_tablesdefaults totrue, that database is visible insystem.tables,system.columnsandsystem.completions, so a concurrent query scanningthose tables without a database filter connects to the unreachable host. The connection
failure is logged on the scanning query's own thread, so it reaches that client's stderr, and
clickhouse-testfails any test whose stderr is non-empty. The polluter stays green and anunrelated test goes red, which makes the failure unattributable from the victim's side.
One master hit since the test landed on 2026-08-13:
00938_fix_rwlock_segfault_longinStateless tests (arm_binary, parallel), whose whole body is an unfilteredsystem.tablesandsystem.columnsscan.CI report
I add
no-parallelwith a written justification, matching the sibling04210_show_remote_databases_in_system_tables, which documents this exact hazard and carriesthe tag for it. I checked the two alternatives first, and both are impossible rather than
merely unattractive: the visibility setting is read from the scanning query's context, so the
polluter cannot hide itself (verified: setting it to 0 on the scanner silences the log, setting
anything on the creator cannot), and a blackholed address only turns an instant refusal into a
connect timeout while still logging, which is why
04210uses192.0.2.1and the tag. Teststatements and the reference file are unchanged; the test runs in 0.23 s, so serializing it
costs nothing.