Repository navigation
Bound the system.text_log scans of test 04401_http_query_parameters_not_leaked_to_logs by the test start time - #123814
Merged
Algunenano merged 1 commit intoOct 5, 2026
Conversation
04401_http_query_parameters_not_leaked_to_logs bounded its six system.text_log reads only by `event_time >= now() - INTERVAL 600 SECOND`, so every read scanned the last ten minutes of the whole server's log. On the parallel `Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)` server that is ~4.7M rows / ~120 MB of `message` per scan, and with `remote_filesystem_read_method = 'read'`, `enable_filesystem_cache = 0` and 1 MiB remote read tasks the five `message LIKE` scans took 97-222 s each, so the test hit the 600 s timeout (ClickHouse#123752, ClickHouse#122362). Take `toUnixTimestamp(now())` before the first request and bound all six reads with `event_time >= toDateTime(test_start)`, as ClickHouse#123652 did for 05061. Every asserted line is logged after that point, so the reference is unchanged; text_log is ordered by (event_date, event_time), so the bound prunes the read to the test's own granules. Locally, with 681K rows in the ten-minute window, a scan reads 381 rows instead of 681,982. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-11:20261004-032000 |
Collaborator
Author
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261004-025600 |
Contributor
|
Workflow [PR], commit [ffe543e] Summary: ✅ AI ReviewSummaryThis PR narrows all six Final Verdict✅ No review findings. |
Algunenano
approved these changes
Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #123652
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
04401_http_query_parameters_not_leaked_to_logstimed out at 600 s inStateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)on #123752 and #122362; 8 more runs in that lane took 149-498 s. No related open issue found.All six
system.text_logreads of the test were bounded only byevent_time >= now() - INTERVAL 600 SECOND, so each read the last ten minutes of the whole server's log. In the #123752 job'squery_logeachmessage LIKEscan read ~4.7M rows (~120 MB from S3) and took 97-222 s, while the polling loop exited on its first iteration. Of 16 job logs read in that lane, all 10 slow runs drewremote_filesystem_read_method = 'read',enable_filesystem_cache = 0andfilesystem_prefetch_min_bytes_for_single_read_task = 1Mi; none of the 6 fast ones did.Change. Take
toUnixTimestamp(now())once before the first request and bound the six reads withevent_time >= toDateTime($test_start), as in #123652. Every asserted line is logged after that, so the.referenceis unchanged.text_logis ordered by(event_date, event_time), so the bound prunes the read to the test's own granules.Validation (master debug build,
text_logpadded to 681K rows in the ten-minute window):The per-MB cost of these small S3 reads in that lane is not explained here; this PR only removes the dependence on the server-wide log volume.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123814]
Version info
26.10.1.1602-master(included in26.10and later)