Skip to content

Backport #109641 to 26.6: Fix flaky test_database_delta::test_snapshot_version (Spark DESCRIBE HISTORY timeout) - #120102

Merged
clickhouse-gh[bot] merged 1 commit into
26.6from
backport/26.6/109641-manual
Sep 15, 2026
Merged

clickhouse-gh[bot] merged 1 commit into
26.6from
backport/26.6/109641-manual

Conversation

@alexey-milovidov

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

Copy link
Copy Markdown
Member

Manual backport of #109641 (by @groeneai) to 26.6, which was never backported. The flaky test_database_delta/test.py::test_snapshot_version (spark-sql DESCRIBE HISTORY timed out after 600s) still fails on the 26.6 branch, e.g. on the bare branch on 2026-09-10 and on the backport PR #120086: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=120086&sha=9ae27d7a7cfebf19e8e03dcfe8b65e46ad3d9ed7&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%205%2F6%29

The retry_on_timeout machinery from #107133 is already on 26.6, so this is a clean cherry-pick of the single commit: get_table_versions now passes retry_on_timeout=True to the read-only DESCRIBE HISTORY call.

Related: #109548

Changelog category (leave one):

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

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

🤖 Generated with Claude Code

Version info

  • Merged into: 26.6.7.16

test_database_delta::test_snapshot_version is chronically flaky: the
get_table_versions() helper runs a read-only DESCRIBE HISTORY via
execute_spark_query() without retry_on_timeout, so a single 600s attempt
is consumed entirely by a transient Unity Catalog HTTP-client hang (the
UC Java client has no per-request timeout, see the jstack root cause
recorded in the retry mechanism added earlier). The test then fails with
'timed out after 600s'.

DESCRIBE HISTORY is read-only and idempotent, so retry_on_timeout is
safe: it uses the shorter 300s per-attempt budget and a fresh-JVM retry,
and two attempts (600s) still fit the 900s pytest timeout. The
non-idempotent INSERT calls are deliberately left un-retried.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
(cherry picked from commit 5e22d65)
@clickhouse-gh

clickhouse-gh Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [894e8cb]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 15, 2026
@clickhouse-gh
clickhouse-gh Bot merged commit 9b6b3c8 into 26.6 Sep 15, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/109641-manual branch September 15, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-testing Test content only (no production code).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants