Repository navigation
Remove cross-version-fragile OPTIMIZE FINAL from test_split_topology_rolling_upgrade - #110184
Merged
alexey-milovidov merged 1 commit intoJul 13, 2026
Conversation
…rolling_upgrade A single insert is one part, so OPTIMIZE FINAL is a no-op merge whose MERGE_PARTS log entry the 26.5 replicas cannot reproduce byte-identically across versions. It can hang for minutes and occasionally raises code 341 (log entry not processed, replica shut down), as seen on the amd_tsan Integration run. The assertions are part-layout-independent and the existing system sync replica loop already guarantees convergence. Mirrors the sibling fix in ClickHouse#110129 which removed the same no-op OPTIMIZE FINAL from test_backward_compatability. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Collaborator
Author
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-4:20260712-210600 |
Collaborator
Author
Contributor
|
Workflow [PR], commit [295fea0] Summary: ✅ AI ReviewSummaryThis PR removes Final Verdict
|
alexey-milovidov
approved these changes
Jul 13, 2026
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…-topology-optimize-hang Remove cross-version-fragile OPTIMIZE FINAL from test_split_topology_rolling_upgrade
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
test_split_topology_rolling_upgradefailed on theIntegration tests (amd_tsan, 1/6)run with code 341 at the setup stepoptimize table ts final:CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110152&sha=729886a3f8576eae108e6bd09bc29c4922a39212&name_0=PR&name_1=Integration%20tests%20%28amd_tsan%2C%201%2F6%29
Root cause: the setup does one
insertthenoptimize table ts final. A single insert produces one part, so FINAL is a no-op merge, but it still enqueues aMERGE_PARTSreplication log entry. The mixed-version cluster (two 26.5 replicas + the build under test) cannot always reproduce that merge byte-identically across versions, so the entry can block replica sync for minutes and, when a replica restarts, surface as code 341.The assertions (
order by a limit 10,order by a desc limit 10,count() group by a) are part-layout-independent, and the existingsystem sync replica tsloop already guarantees every replica sees the same 1M rows. Removing the OPTIMIZE removes the flakiness without weakening the test.This mirrors #110129, which removed the identical no-op OPTIMIZE FINAL from the sibling
test_backward_compatabilityin the same file.Version info
26.7.1.841(included in26.7and later)