Skip to content

Bound the system.text_log scan in test 05153_clear_column_stale_materialized_warning by time - #119989

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix/05153-text-log-time-bound
Sep 14, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
fix/05153-text-log-time-bound

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Related: #119849
Related: #115371

The test checks for the stale MATERIALIZED warning with a SELECT over system.text_log filtered only by logger_name. In a long parallel run the table grows past the 20M-row max_rows_to_read limit of the test profile, and the query fails with TOO_MANY_ROWS. Seen in the CH Inc sync run of #119849, job Stateless tests (amd_release, distributed cache, meta in keeper, s3 storage, parallel): https://github.com/ClickHouse/clickhouse-private/actions/runs/34834414657/job/104001701218

This adds the event_date / event_time bound that the other text_log tests use, so the scan goes through the primary key.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/119989]

Version info

  • Merged into: 26.9.1.1487 (included in 26.9 and later)

…terialized_warning` by time

The test checked for the stale `MATERIALIZED` warning with a `SELECT` over `system.text_log`
filtered only by `logger_name`. In a long parallel run the table grows past the 20M-row
`max_rows_to_read` limit of the test profile, and the query fails with `TOO_MANY_ROWS`
(seen in the `CH Inc sync` run of #119849:
`Stateless tests (amd_release, distributed cache, meta in keeper, s3 storage, parallel)`).
Add the `event_date` / `event_time` bound that the other `text_log` tests use, so the scan
goes through the primary key.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [b8c39c9]

Summary: ✅


AI Review

Summary

This PR narrows the system.text_log lookup in 05153_clear_column_stale_materialized_warning.sh so the query no longer degrades into a full scan and trips the stateless profile's max_rows_to_read limit. That direction is correct, but the new lower bound is still a rolling 10-minute window, so the regression check can pass on a stale warning from an earlier execution that reused the same database.

Findings

⚠️ Majors

  • [tests/queries/0_stateless/05153_clear_column_stale_materialized_warning.sh:46] The new event_time >= now() - INTERVAL 600 SECOND predicate bounds the scan, but it does not prove that the warning came from this attempt. On a direct .sh rerun or any fixed---database invocation, a warning left by the previous run in the same database keeps count() >= 1 true for 10 minutes even if the current mutation stops logging it, so the regression guard can silently miss a real breakage.
    Suggested fix: capture a server-side timestamp before the mutation and filter system.text_log on that exact lower bound, preferably with now64(6) and event_time_microseconds, so the query stays key-prunable and attempt-scoped.
Final Verdict

Request changes. The log lookup should be scoped to this execution, not only to a recent time window.

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-testing Test content only (no production code). labels Sep 14, 2026
@Algunenano Algunenano self-assigned this Sep 14, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 14, 2026
Merged via the queue into master with commit 11cacf7 Sep 14, 2026
176 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix/05153-text-log-time-bound branch September 14, 2026 19:14
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 14, 2026
@clickhouse-gh clickhouse-gh Bot added comp-mutations ALTER UPDATE/DELETE and mutation execution over parts (including lightweight updates/deletes). and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-mutations ALTER UPDATE/DELETE and mutation execution over parts (including lightweight updates/deletes). pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants