Repository navigation
[pull] master from ClickHouse:master - #4
Merged
Merged
Conversation
Both tests fail with `Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00 million, current rows: 22.19 million. (TOO_MANY_ROWS)` when run on CI workers whose `system.text_log` has accumulated more than 20M rows. The test queries scan `system.text_log` with LIKE predicates that require a full-table read to find matching messages, hitting the randomized `max_rows_to_read` ceiling. Fix: add `SETTINGS max_rows_to_read = 0` to the `system.text_log` and `system.query_log` queries, following the established pattern used in `02935_parallel_replicas_settings.sql`, `02813_starting_in_text_log.sql`, `03096_text_log_format_string_args_not_empty.sh`, and many others. For `03312_line_numbers.sql`, the fix is applied at the query level (not as a top-of-file `SET`) because the test asserts on `script_line_number` — adding any line before the tracked queries would shift them and break the reference. Verification: - Without the fix: test reliably FAILS with `CLICKHOUSE_CLIENT_OPT="--max_rows_to_read=1000"` on the same query pattern CI hits. - With the fix: 30/30 runs pass with the same restrictive setting plus full randomization.
The left panel had a fixed `height: 100vh`, so opening the web terminal pushed its bottom (with the terminal/GitHub icons) below the viewport. Track the panel height via a `--terminal-height` CSS variable and size the menu as `100vh - terminal_height`. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
When `play.html` is opened locally with a `?url=...` query parameter overriding the server, the HEAD check for `/webterminal` was still issued against the page's own URL (e.g. `file:///webterminal`) and always failed. Resolve it against the configured server instead. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… server URL The availability probe was updated in cdd5e96 to resolve `/webterminal` against `url_elem.value`, but `getTerminalURL` still returned the relative path `/webterminal`, which the iframe resolves against the page's own origin. When the page is opened locally with `?url=...`, the probe would succeed on the configured server while the iframe loaded a non-existent endpoint on the page origin. Make `getTerminalURL` resolve against `url_elem.value` so the probe and the iframe use the same URL source. Capture the iframe origin at creation time and use it as the target origin for `postMessage`, so credential and refit messages still reach the iframe when it is cross-origin. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
`getTerminalURL` resolved `/webterminal` against `url_elem.value` without validation. If the value is not an absolute URL (e.g. `?url=localhost:8123` or a temporarily invalid value while the user is editing), `new URL(...)` threw synchronously, and because the probe runs at module initialization the exception could abort the rest of `play.html` initialization. Catch the parse failure, return `null`, and treat that as "terminal unavailable" - skip the probe and bail out of `activateTerminal` before mutating any state. Addresses review feedback on PR #105087. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
`codespell` flagged the comment word `unparseable` in `getTerminalURL`'s guard clause. Replace with `unparsable` so the `Style check` passes. Addresses the only unresolved review thread on #105087.
Two more stateless tests hit the same `system.text_log` randomized
`max_rows_to_read = 20000000` cap as the previously-fixed `03312` /
`03335_empty_blobs_on_azure`:
- `03335_empty_blobs_on_s3.sh` is the S3 sibling of the Azure variant;
both `Skipped empty blobs after 1 insert:` and
`Skipped empty blobs after 2 inserts and merge:` queries scan
`system.text_log` with a `LIKE` predicate.
- `03735_excessive_buffer_flush.sql` ends with a `system.text_log` scan
using `logger_name LIKE format('%StorageBuffer ({}.%', ...)` to count
Buffer flush logs.
Both reproduce the chronic CI flake on `Stateless tests (arm_binary,
parallel)` workers whose `text_log` has accumulated >20M rows.
Per-failure CI diagnostic confirms the failure is environmental
(reproduces with AND without random settings), not setting-driven:
`03335_empty_blobs_on_s3` 32/32 fail with randomization, 68/68 without;
`03735_excessive_buffer_flush` 3/3 with, 3/3 without. Error message
verbatim:
Code: 158. DB::Exception: Limit for rows (controlled by
'max_rows_to_read' setting) exceeded, max rows: 20.00 million,
current rows: 22.96 million. (TOO_MANY_ROWS)
Fix: append `SETTINGS max_rows_to_read = 0` to each `system.text_log`
query, following the exact pattern already applied earlier in this PR
to `03335_empty_blobs_on_azure.sh` and `03312_line_numbers.sql`, and
established in 15+ other tests (`02935`, `02813`, `03096`, `01165`, ...).
The point-lookup queries (#4-#7) in apply_patch_parts_join produced 18-30% test noise because the four UPDATE statements that build the patch parts ran with default parallelism. Parallel threads racing into the patch builder produce different patch-part split boundaries on every run, which changes how many patch granules a point lookup at id=5000000 ends up reading. Per-server timing then depends on the random split, not on the code being measured. Force INSERT and UPDATE to use a single thread plus a block size large enough to fit each whole patch, so the patch-part layout is the same on every run. Locally verified deterministic over 20 cycles. Setup time goes from ~4.2s to ~6.3s. Scan queries (#0-#3) still detect patch-apply-path regressions as before. Refs #100759.
…inal Fix side menu height on play.html when web terminal is open
…-flakiness Stabilize apply_patch_parts_join performance test
…d-03312-03335 Fix flaky text_log/query_log scans on busy CI workers (03312, 03335 azure/s3, 03735)
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )