Skip to content

Skip codec sanity checks for a TTL recompression codec on ATTACH (26.3) - #127150

Merged
alexey-milovidov merged 1 commit into
26.3from
fix-26.3-ttl-recompress-codec-attach
Oct 21, 2026
Merged

alexey-milovidov merged 1 commit into
26.3from
fix-26.3-ttl-recompress-codec-attach

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

The 26.3 backport of #113877 (#126726) added codec chain checks that run under sanity_check. On 26.3, TTLDescription::getTTLFromAST still enables sanity checks for a TTL RECOMPRESS CODEC on ATTACH. So a table created before the upgrade with a TTL recompression chain of more than 255 codecs, or with a chain whose reserved size overflows, fails to load on server start (Code: 36 ... Too many codecs in the codec chain), and queries to system.tables then fail with ASYNC_LOAD_WAIT_FAILED.

This takes the sanity-check half of e10d76d (already on master and 26.7): ATTACH skips the codec sanity checks for a TTL recompression codec, as it already does for column codecs. CREATE and ALTER ... MODIFY TTL still reject such chains.

Fix authored by @groeneai, proposed in a comment on #126726 after that PR was merged.

Related: #126726
Related: #113877

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Fix a table failing to load on server start when its TTL RECOMPRESS CODEC has a codec chain that is rejected by the codec chain checks added in a previous patch release.

🤖 Generated with Claude Code

Version info

  • Merged into: 26.3.59.5

The codec chain checks of this backport run under `sanity_check`, which 26.3 still
enables for a TTL `RECOMPRESS CODEC` when a table is attached. A table created before
the upgrade with a TTL recompression chain of more than 255 codecs, or with a chain
whose reserved size overflows, then fails to load, and queries to `system.tables`
fail with ASYNC_LOAD_WAIT_FAILED. Master and 26.7 already skip these checks on ATTACH
(e10d76d, #108788); this takes only the sanity check half of that change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexey-milovidov alexey-milovidov added the pr-bugfix Pull request with bugfix, not backported by default label Oct 21, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [264bf9a]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added the comp-ttl TTL rules and TTL merges (moving/recompressing/rolling-up/deleting parts). label Oct 21, 2026
@alexey-milovidov alexey-milovidov self-assigned this Oct 21, 2026
@alexey-milovidov
alexey-milovidov merged commit 8f7867a into 26.3 Oct 21, 2026
36 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-26.3-ttl-recompress-codec-attach branch October 21, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ttl TTL rules and TTL merges (moving/recompressing/rolling-up/deleting parts). pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants