Skip to content

Fix 02995_new_settings_history on the 26.7 branch - #116868

Merged
alexey-milovidov merged 1 commit into
26.7from
fix-02995-settings-history-26-7
Aug 29, 2026
Merged

alexey-milovidov merged 1 commit into
26.7from
fix-02995-settings-history-26-7

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

02995_new_settings_history fails deterministically for every pull request based on 26.7:

PLEASE ADD THE NEW MERGE_TREE_SETTING TO SettingsChangesHistory.cpp: text_index_serialization_version WAS ADDED

The test compares system.settings / system.merge_tree_settings against baselines captured from a pre-release of 26.6, and required every setting missing from the baselines to have a SettingsChangesHistory.cpp entry with a version strictly greater than 26.6.

That is too strict for a setting introduced later in the 26.6 series. The MergeTree setting text_index_serialization_version was added to the 26.6 branch by the backport of #111803, i.e. after the v26.6.1 pre-release the baselines were generated from, so it is absent from 02995_merge_tree_settings_settings_26_6_1.tsv while its history entry correctly says 26.6.

This accepts 26.6 in the version comparison: a setting that is absent from the baselines must carry a history entry of 26.6 or later. No strictness is lost, because settings that were already present in the baselines never reach this predicate.

On master the test no longer exists - it was replaced by 03999_stateless_settings_history in #111605 - so this fix is only needed on the release branch.

Example of the failure (one of many): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116466&sha=ce1b461c7587e671c8e4756ba87c66910efa5539&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29

Related: #116466
Related: #111605

Changelog category (leave one):

  • CI Fix or improvement (changelog entry is not required)

Version info

  • Merged into: 26.7.6.21

The test compares `system.settings` / `system.merge_tree_settings` against
baselines captured from a *pre-release* of 26.6, and required every setting
missing from the baselines to have a `SettingsChangesHistory.cpp` entry with a
version strictly greater than `26.6`.

That is too strict for a setting introduced later in the 26.6 series. The
`MergeTree` setting `text_index_serialization_version` was added to the 26.6
branch by the backport of #111803, i.e. after the v26.6.1 pre-release the
baselines were generated from, so it is absent from
`02995_merge_tree_settings_settings_26_6_1.tsv` while its history entry
correctly says `26.6`. As a result the test failed deterministically for every
pull request based on `26.7`:

    PLEASE ADD THE NEW MERGE_TREE_SETTING TO SettingsChangesHistory.cpp: text_index_serialization_version WAS ADDED

Accept `26.6` in the version comparison: a setting that is absent from the
baselines must carry a history entry of 26.6 or later. No strictness is lost -
settings that were already present in the baselines never reach this predicate.

On `master` the test does not exist anymore, it was replaced by
`03999_stateless_settings_history` in #111605, so this fix is only needed on the
release branch.
@clickhouse-gh

clickhouse-gh Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [f822369]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_asan_ubsan, distributed plan, parallel) FAIL
Server died FAIL cidb
Logical error '!part.empty()' (STID: 2508-47d5) FAIL cidb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant