Skip to content

Fix a crash with estimateCompressionRatio - #127139

Merged
rschu1ze merged 4 commits into
masterfrom
estimateCompressionRatio
Oct 21, 2026
Merged

rschu1ze merged 4 commits into
masterfrom
estimateCompressionRatio

Conversation

@rschu1ze

@rschu1ze rschu1ze commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC)

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

Fixes a crash in estimateCompressionRatio with codecs DoubleDelta and Gorilla


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

Version info

  • Merged into: 26.11.1.418-master (included in 26.11 and later)
  • Backported to: 26.10.2.59, 26.9.24.12, 26.8.33.12, 26.7.37.6, 26.3.59.6

@rschu1ze rschu1ze changed the title Estimate compression ratio Fix a crash with estimateCompressionRatio Oct 21, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5c4f938]

Summary: ✅


AI Review

Summary

The PR fixes integer overflow in the buffer-size calculations for DoubleDelta and Gorilla, rejects bounds exceeding the compressed block header's capacity, and updates the codec-chain boundary tests. No actionable findings in the current diff. The new estimateCompressionRatio regression test passed in Fast test.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Oct 21, 2026
@rienath rienath self-assigned this Oct 21, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-codecs Compression/encoding codecs (LZ4/ZSTD/etc.), archive formats (tar/zip/7z), codec selection and IO... label Oct 21, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 5c4f93895 with master 1177311f7 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of 3eecd1398; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

8 translation units recompiled, 8 s compile time in total, 8 of them have a recent master baseline.

Job report

@rschu1ze
rschu1ze added this pull request to the merge queue Oct 21, 2026
Merged via the queue into master with commit 4834df7 Oct 21, 2026
179 checks passed
@rschu1ze
rschu1ze deleted the estimateCompressionRatio branch October 21, 2026 13:18
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Oct 21, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 21, 2026
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Oct 21, 2026
clickhouse-gh Bot added a commit that referenced this pull request Oct 21, 2026
Backport #127139 to 26.10: Fix a crash with estimateCompressionRatio
clickhouse-gh Bot added a commit that referenced this pull request Oct 21, 2026
Backport #127139 to 26.9: Fix a crash with estimateCompressionRatio
clickhouse-gh Bot added a commit that referenced this pull request Oct 21, 2026
Backport #127139 to 26.8: Fix a crash with estimateCompressionRatio
clickhouse-gh Bot added a commit that referenced this pull request Oct 21, 2026
Backport #127139 to 26.7: Fix a crash with estimateCompressionRatio
rschu1ze added a commit that referenced this pull request Oct 21, 2026
Backport #127139 to 26.3: Fix a crash with estimateCompressionRatio
strtgbb pushed a commit to Altinity/ClickHouse that referenced this pull request Oct 22, 2026
@watson-ch watson-ch Bot added v26.6-must-backport and removed pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Nov 9, 2026
@watson-ch

watson-ch Bot commented Nov 9, 2026

Copy link
Copy Markdown

Backport labels have been automatically added based on https://github.com/clickhouse/clickhouse-core-incidents/issues/1045

Labels added:

  • v26.6-must-backport

These labels ensure backport PRs are properly created for each affected release version. The release automation will create backport PRs as needed based on these labels.

@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 9, 2026
@robot-clickhouse robot-clickhouse added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 9, 2026
@watson-ch watson-ch Bot added v26.2-must-backport v26.4-must-backport and removed pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Nov 16, 2026
@watson-ch

watson-ch Bot commented Nov 16, 2026

Copy link
Copy Markdown

Backport labels have been automatically added based on https://github.com/clickhouse/clickhouse-core-incidents/issues/1384

Labels added:

  • v26.2-must-backport
  • v26.4-must-backport

These labels ensure backport PRs are properly created for each affected release version. The release automation will create backport PRs as needed based on these labels.

@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 16, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-codecs Compression/encoding codecs (LZ4/ZSTD/etc.), archive formats (tar/zip/7z), codec selection and IO... pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo v26.2-must-backport v26.4-must-backport v26.6-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants