Repository navigation
Conversation
…reserve_checksums_on_mutations Backport of PR ClickHouse#101580 to the 26.3 release branch. Pins `serialization_info_version='basic'` in the test's `CREATE TABLE` settings. The test is chronically flaky on 26.3 (25 direct-push failures and 15 backport PR failures in the last 30 days) because CI randomizes `serialization_info_version='with_types'`, which causes the `INSERT` and `ALTER TABLE REWRITE PARTS` paths to produce different `serialization.json` metadata content (different type version metadata), resulting in `hash_of_all_files` and `hash_of_uncompressed_files` checksum mismatches. The actual data is fine (`uncompressed_hash_of_compressed_files` stays identical). The equivalent pin has been in place on `master` since 2026-04-08 (PR ClickHouse#101580 re-added it after PR ClickHouse#100896 mistakenly removed it). Since then there have been zero master failures in 17+ days; all remaining failures are on the 26.3 branch and backport PRs targeting 26.3.
Collaborator
Author
|
cc @CurtizJ @alesapin — could you review this backport? It's a minimal 4-line pin of Session: cron:clickhouse-ci-task-worker:20260417-094500 |
1 task done
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.
Backport of PR #101580 to the
26.3release branch.Why
The test
03706_statistics_preserve_checksums_on_mutationsis chronically flaky on the26.3release branch:26.3branch over the last 30 days26.3also hit this failure (including Backport #102759 to 26.3: Apply Poisson sampling correction to collapsed jemalloc heap profiles #102876, Backport #102607 to 26.3: Usexz5.8.3 #102835, Backport #101645 to 26.3: Fix exact subcolumn match priority over prefix match ingetSubcolumnData#102518, Backport #101891 to 26.3: Fix UDF registry loss during Keeper session expiry #102030, Backport #100926 to 26.3: Fix wrong results in JOIN with shard-by-PK and query condition cache #101962, Backport #102085 to 26.3: Fix SIGSEGV in view filter propagation due to type mismatch #102240, Backport #101936 to 26.3: Fix SIGSEGV in MergeTreeDataPartWriterWide::cancel during merge cancellation #102279 and others)mastersince 2026-04-08 (PR Fix flaky test 03706_statistics_preserve_checksums_on_mutations #101580). Zero master failures in 17+ days since — all remaining failures are on26.3and its backport PRs.Root cause
The test-runner randomizes
serialization_info_version. Whenwith_typesis picked, theINSERTandALTER TABLE REWRITE PARTScode paths produce differentserialization.jsoncontent (different type version metadata). This causeshash_of_all_filesandhash_of_uncompressed_filesmismatches.uncompressed_hash_of_compressed_filesstays identical — actual data is fine, only the metadata differs between the two paths.The fix pins
serialization_info_version='basic'in theCREATE TABLEsettings so both code paths produce identical metadata.Change
Minimal 4-line addition to the
CREATE TABLEsettings. Backport scope is smaller than master's version of the test becausemap_serialization_versionpins (from PR #100896) were never applied to26.3.Evidence on master
Before PR #101580 (April 8): ~1-3 master failures/day, 26 master failures in 14 days.
After PR #101580: 0 master failures in 17+ days. Pattern still active on
26.3.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