You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backport #113877 to 26.3: Fix out-of-bounds write on a long codec chain - #126726
Original pull-request #113877
Cherry-pick pull-request #126673
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
On 26.3 this backport stops a table from loading if its stored TTL RECOMPRESS CODEC has more than 255 codecs or a chain whose reserved size overflows. 26.3 still runs the codec sanity checks for a TTL recompression codec on ATTACH, and the new checks are sanity checks. 26.7 and master skip them on ATTACH (e10d76d).
Measured on a 26.3 debug build: tables with TTL d + INTERVAL 1 DAY RECOMPRESS CODEC(Delta x300, ZSTD) and RECOMPRESS CODEC(FPC x150), created on 26.3 without this backport, fail to attach on server start with this branch (Code: 36 ... Too many codecs in the codec chain: 301), and a query on system.tables then fails with ASYNC_LOAD_WAIT_FAILED. With the commit below both tables load, CREATE and ALTER ... MODIFY TTL still reject those chains, and 04812_codec_chain_reserve_overflow passes.
The commit adds !is_attach && to the sanity-check argument in TTLDescription.cpp (only that half of e10d76d), on top of this branch:
🕵 This PR was merged before the follow-up was applied. I opened #127150 against 26.3 with @groeneai's commit, which skips the codec sanity checks for a TTL RECOMPRESS CODEC on ATTACH, so tables that already exist keep loading.
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
pr-backportChanges, backported to release branch. Do not use manually - automated use only!pr-bugfixPull request with bugfix, not backported by default
4 participants
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.
Original pull-request #113877
Cherry-pick pull-request #126673
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.57.6