Repository navigation
Skip codec sanity checks for a TTL recompression codec on ATTACH (26.3) - #127150
Merged
Merged
Conversation
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]>
Contributor
|
Workflow [BackportPR], commit [264bf9a] 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.
The 26.3 backport of #113877 (#126726) added codec chain checks that run under
sanity_check. On 26.3,TTLDescription::getTTLFromASTstill enables sanity checks for a TTLRECOMPRESS CODEConATTACH. 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 tosystem.tablesthen fail withASYNC_LOAD_WAIT_FAILED.This takes the sanity-check half of e10d76d (already on master and 26.7):
ATTACHskips the codec sanity checks for a TTL recompression codec, as it already does for column codecs.CREATEandALTER ... MODIFY TTLstill 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):
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 CODEChas a codec chain that is rejected by the codec chain checks added in a previous patch release.🤖 Generated with Claude Code
Version info
26.3.59.5