Skip to content

Backport #122465 to 26.3: Fix ssd_cache dictionaries with the same PATH returning each other's values - #131247

Merged
nihalzp merged 1 commit into
26.3from
backport/26.3/122465
Nov 14, 2026
Merged

nihalzp merged 1 commit into
26.3from
backport/26.3/122465

Conversation

@robot-ch-test-poll3

@robot-ch-test-poll3 robot-ch-test-poll3 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #122465
Cherry-pick pull-request #130881

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

  • Merged into: 26.3.64.2

@robot-ch-test-poll3 robot-ch-test-poll3 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Nov 13, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [f550bba]

Summary: ✅

@nihalzp

nihalzp commented Nov 14, 2026

Copy link
Copy Markdown
Member

@groeneai Why the diff is so big?

@groeneai

Copy link
Copy Markdown
Collaborator

The change itself is one commit, 1abdfd6: 3 files, +104/-3 (src/Dictionaries/SSDCacheDictionaryStorage.h and the 05258_ssd_cache_dictionaries_same_path test).

The rest comes from the base. 26.3 was force-pushed on 2026-11-13 at 10:46 UTC, 36 minutes after this PR was opened, so the PR's parent d18dcb0 is no longer on 26.3. GitHub now diffs from their common ancestor 2817a6e (2026-10-23), which pulls in the 198 commits of the pre-rebuild 26.3 history that are not on the current branch.

Rebuilding backport/26.3/122465 on the current 26.3 fixes it. The commit applies there without conflicts: SSDCacheDictionaryStorage.h has the same blob at d18dcb0 and at the current 26.3 tip e99ef91, and the two test files are new.

git fetch origin 26.3 backport/26.3/122465
git checkout -B backport/26.3/122465 origin/26.3
git cherry-pick 1abdfd67cd498ac9eb0c632cfeb5a7775406633e
git push --force origin backport/26.3/122465

@nihalzp
nihalzp force-pushed the backport/26.3/122465 branch from 1abdfd6 to f550bba Compare November 14, 2026 09:56
@nihalzp

nihalzp commented Nov 14, 2026

Copy link
Copy Markdown
Member

@groeneai Check if resolution is correct.

@groeneai

Copy link
Copy Markdown
Collaborator

Yes, it is correct. f550bba6 is 1abdfd67 re-applied on the current 26.3 tip (481c1ca5) without changes: all three resulting files have the same blobs as before (header db0bb51b, .sh 78bdeb18, .reference 59252d91), and the header it patches is identical on the old and the new base (afbf9c31), so the diff is the same +33/-3. The PR now shows only these 3 files.

Compared with the change on master, the header takes every line except the OS_DARWIN ones (the open without O_DIRECT, and F_NOCACHE moved into the try). On 26.3 this file is still under #if defined(OS_LINUX) || defined(OS_FREEBSD), so there is no macOS branch to port. FS::isSymlinkNoThrow, FS::readSymlink, ErrnoException::throwFromPathWithErrno and randomSeed all exist on 26.3, and their headers did not change in the 26.3 rebuild.

I built this resolution on 26.3 (Debug) when resolving the cherry-pick in #130881: 05258_ssd_cache_dictionaries_same_path passed 50/50 with the header change and failed 3/3 without it (the two dictionaries returned each other's values for 340 and 467 of 500 keys). CI here is still building; 05258 runs in its stateless jobs.

@nihalzp
nihalzp merged commit fdd9de9 into 26.3 Nov 14, 2026
37 checks passed
@nihalzp
nihalzp deleted the backport/26.3/122465 branch November 14, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants