Repository navigation
Conversation
Ports the fourth feature tier (ClickHouse#113581) to the 26.3 LTS branch, requested by @ nikitamikhaylov via the `v26.2-must-backport` label on that PR. The robot cherry-pick ClickHouse#117729 cannot carry it: 26.3 was cut long before the feature merged, so the change lands on drifted context and the PR is `CONFLICTING`. This is deliberately not a replay of ClickHouse#113581's diff. Since that PR merged, "Fix allow_feature_tier for MergeTree settings" (ClickHouse#113156, backported to 26.3 as ClickHouse#117502) removed every tier parameter from `MergeTreeSettings::sanityCheck` and centralized enforcement into `SettingsConstraints::isAnyTierRestricted` and `SettingsConstraints::getTierChecker`, which is reached for both ordinary and MergeTree settings. Replaying the original diff would restore code that was deleted from both branches. Instead the tier is expressed in the architecture 26.3 now has: `getTierChecker` gains a `PRIVATE_PREVIEW` branch and `isAnyTierRestricted` its third disjunct, and five files of ClickHouse#113581 that existed only to thread tier booleans through `sanityCheck` are dropped (`programs/server/Server.cpp`, `src/Storages/MergeTree/MergeTreeData.cpp`, `src/Storages/MergeTree/MergeTreeSettings.h`, `src/Storages/MergeTree/MergeTreeSettings.cpp`, `src/Storages/ProjectionsDescription.cpp`). A sixth, `src/Storages/System/StorageSystemDocumentation.cpp`, does not exist on this branch. The encoding change is the same as on master: `PRIVATE_PREVIEW` takes `0b10000`, so `Flags::TIER` widens from `0x0c` to `0x1c` and the `BaseSettingsHelpers::getTier` range bound moves from `BETA` to `PRIVATE_PREVIEW`. Bit `0x10` is free on 26.3, whose only other flags are `IMPORTANT` and `CUSTOM`. Mask and bound move together: widening one without the other either silently reinterprets encodings 20, 24 and 28 or is a no-op. As on master, this changes what `allow_feature_tier = 2` means. It stops being "production settings only" and starts allowing `BETA` settings; the new `3` is production-only. @ nikitamikhaylov specified that mapping and waived compatibility on issue ClickHouse#113481. Two adaptations are branch-local rather than ported verbatim. 26.3 has no `BETA`-tier MergeTree setting, where master has two, so `03257_setting_tiers.reference` keeps this branch's `0` for that row along with the comment explaining it. And `Flags::HOT_RELOAD` does not exist here, so master's neighbour-flag assertion using it is omitted from the new unit test; the `IMPORTANT` and `CUSTOM` assertions remain, and on this branch those are in fact every other flag bit. `docs/en/operations/system-tables/settings.md` gains the missing tier bullet. ClickHouse#113581 touched no documentation because master generates that page from the `StorageSystemSettings.cpp` doc string inside an autogenerated region; 26.3 still hand-maintains the value list at the old docs path, so without this line the server would report five tiers while its own documentation listed four. Related: ClickHouse#113581 Related: ClickHouse#117729 Related: ClickHouse#117502 Related: ClickHouse#113481
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding), plus my own cold
Also ruled on: the added documentation line stays. 26.3 hand-maintains that tier list (no Session id: cron:clickhouse-review-slot-48:20260903-121502 |
|
Workflow [BackportPR], commit [3193e9f] |
|
cc @Algunenano @vitlibar, could you review this? It ports the fourth feature tier (#113581) to |
|
@groeneai This is not how you fix a cherry-pick. You fix a cherry-pick by checking out the source branch, merging the target branch and pushing. A direct PR to the branch is not ok. |
|
Understood, and I have redone it that way: #117893 is The one step of your recipe I cannot run is the last one: my account has I have one other PR in the shape you rejected, #116837, and will redo it the same way. |
Related: #113581
Related: #117729
Related: #117502
Related: #113481
Ports the fourth feature tier to 26.3, requested by @ nikitamikhaylov via the
v26.2-must-backportlabel on #113581. The robot cherry-pick #117729 isCONFLICTING.This is not a literal cherry-pick. #113156 ("Fix allow_feature_tier for MergeTree
settings"), backported to 26.3 as #117502 on 2026-09-01, removed every tier parameter from
MergeTreeSettings::sanityCheckand centralized enforcement intoSettingsConstraints::isAnyTierRestrictedandSettingsConstraints::getTierChecker, whichis reached for both ordinary and MergeTree settings. Replaying #113581's diff would restore
code deleted from both branches, so the tier is added at the new enforcement point instead
and six files of #113581 are dropped: five only threaded tier booleans through
sanityCheck(Server.cpp,MergeTreeData.cpp,MergeTreeSettings.{h,cpp},ProjectionsDescription.cpp), andStorageSystemDocumentation.cppdoes not exist here.26.3 measurably lacks the tier (
private_previewappears 0 times in itsSettingsTierType.h, against 2 on master).Flags::TIERwidens0x0c->0x1c(bit0x10verified free) and the
BaseSettingsHelpers::getTierbound moves with it.As on master,
allow_feature_tier = 2stops meaning "production only" and starts allowingBETAsettings; the new3is production-only. @ nikitamikhaylov specified that mapping andwaived compatibility on #113481.
Three deliberate, branch-local differences from master's diff: 26.3 has no
BETA-tierMergeTree setting (master has two), so
03257_setting_tiers.referencekeeps this branch's0for that row;
Flags::HOT_RELOADdoes not exist here, so master's neighbour-flag assertionusing it is omitted; and
docs/en/operations/system-tables/settings.mdgains the tier bullet,because master generates that page from the
StorageSystemSettings.cppdoc string while 26.3still hand-maintains the list.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Added a new
private previewfeature tier betweenexperimentalandbeta, so feature tiers are now orderedexperimental < private preview < beta < production. The server settingallow_feature_tiergains a level:0allows all tiers,1excludes experimental,2additionally excludes private preview, and3allows production settings only. Configurations that previously pinnedallow_feature_tier = 2to allow production settings only must now use3.Documentation entry for user-facing changes