Skip to content

Fix ClickBench job: allow /dev/shm/clickhouse/ as filesystem cache path - #105088

Merged
alexey-milovidov merged 2 commits into
masterfrom
fix-clickbench-filesystem-cache-path
May 15, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
fix-clickbench-filesystem-cache-path

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented May 15, 2026 •

Copy link
Copy Markdown
Member

The ClickBench job fails on master while attaching the hits table:

Code: 36. DB::Exception: Filesystem cache absolute path must lie inside `/tmp/filesystem_caches/`,
but have /dev/shm/clickhouse/: While processing disk(type = cache, path = '/dev/shm/clickhouse/', ...).
(BAD_ARGUMENTS)

ci/jobs/scripts/clickbench/create.sql mounts a cached disk at /dev/shm/clickhouse/, but the default
server config (programs/server/config.d/filesystem_caches_path.xml) pins both filesystem_caches_path
and custom_cached_disks_base_directory to /tmp/filesystem_caches/, and RegisterDiskCache.cpp
rejects any cache disk outside that root.

Override the two settings in install_clickbench_config so the allowed directory matches the path the
ClickBench create.sql actually uses.

Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=75fa606f4590bda023a727a000555ca8622b4266&name_0=MasterCI&name_1=ClickBench%20%28arm_release%29

Changelog category (leave one):

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

Version info

  • Merged into: 26.5.1.699

…path

ClickBench's `create.sql` attaches the `hits` table on a cached disk
rooted at `/dev/shm/clickhouse/`, but the default server config restricts
filesystem cache paths to `/tmp/filesystem_caches/`. The validation in
`RegisterDiskCache.cpp` therefore rejected the `ATTACH TABLE` with:

    Code: 36. Filesystem cache absolute path must lie inside
    `/tmp/filesystem_caches/`, but have /dev/shm/clickhouse/.

Override `filesystem_caches_path` and `custom_cached_disks_base_directory`
in the ClickBench install to match what `create.sql` uses.

Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=75fa606f4590bda023a727a000555ca8622b4266&name_0=MasterCI&name_1=ClickBench%20%28arm_release%29
@clickhouse-gh

clickhouse-gh Bot commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ba7b18a]

Summary: ✅


AI Review

Summary

This PR updates the clickbench CI job to copy a dedicated filesystem_caches_path.xml override so the cached disk path in ci/jobs/scripts/clickbench/create.sql (/dev/shm/clickhouse/) matches server validation settings at startup. I reviewed the current diff and related ClickHouseProc install flow, and there are no unresolved correctness or reliability issues in the changed code.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label May 15, 2026
Drop the override from the shared `install_clickbench_config` helper in
`ClickHouseProc` (the vector-search jobs reuse that method and don't need
it) and ship the matching server config as
`ci/jobs/scripts/clickbench/filesystem_caches_path.xml`, co-located with
`create.sql`. `ci/jobs/clickbench.py` copies it into `config.d/` after
the install step.

This keeps the disk path declared in `create.sql` and the allowed-
directory setting in one place.

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@alexey-milovidov alexey-milovidov self-assigned this May 15, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue May 15, 2026
Merged via the queue into master with commit 48ea778 May 15, 2026
167 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-clickbench-filesystem-cache-path branch May 15, 2026 23:51
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants