Repository navigation
Backport #109641 to 26.6: Fix flaky test_database_delta::test_snapshot_version (Spark DESCRIBE HISTORY timeout) - #120102
Merged
Conversation
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)
Contributor
|
Workflow [BackportPR], commit [894e8cb] Summary: ✅ |
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.
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 HISTORYtimed 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%29The
retry_on_timeoutmachinery from #107133 is already on 26.6, so this is a clean cherry-pick of the single commit:get_table_versionsnow passesretry_on_timeout=Trueto the read-onlyDESCRIBE HISTORYcall.Related: #109548
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
🤖 Generated with Claude Code
Version info
26.6.7.16