Skip to content

ClickBench fails on stable-26.3: cache path /dev/shm/clickhouse/ is rejected after the 26.3.33 bump #2407

Closed

Description

@CarlosFelipeOR

✅ I checked the Altinity Stable Builds lifecycle table, and the Altinity Stable Build version I'm using is still supported.

Type of problem

Bug report — CI configuration, not product code

Describe the situation

Both ClickBench jobs fail at Load the data on the release run for v26.3.33.10001.altinitystable. The server rejects the cache disk that ClickBench's create.sql attaches.

The bump to v26.3.33.24-lts (#2357) brought the backport of upstream #99138, which stops an explicit ATTACH TABLE ... (definition) from bypassing filesystem-cache path validation. Upstream shipped the matching CI fix two days later in #105088. The 26.3 line got the behaviour change without it.

This issue:

How to reproduce

Version: 26.3.33.10001.altinitystable · Build: release · Job: ClickBench (amd_release)

Run the ClickBench job on stable-26.3. It fails on the first statement of ci/jobs/scripts/clickbench/create.sql:

ATTACH TABLE hits UUID 'c449dfbf-ba06-4d13-abec-8396559eb955' (...)
ENGINE = MergeTree
SETTINGS disk = disk(type = cache, path = '/dev/shm/clickhouse/', max_size = '16G',
         disk = disk(type = web, endpoint = 'https://clickhouse-datasets-web.s3.us-east-1.amazonaws.com/'));

Expected behavior

The table attaches and the benchmark queries run, as on every run before the bump.

Actual behavior

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)

Root cause analysis

src/Disks/DiskObjectStorage/RegisterDiskCache.cpp validates the cache path against custom_cached_disks_base_directory, and skips the check when the disk comes from an attach:

if (!is_attach && !pathStartsWith(file_cache_settings[FileCacheSetting::path].value,
                                  cache_path_prefix_if_absolute))
    throw Exception(ErrorCodes::BAD_ARGUMENTS,
                    "Filesystem cache absolute path must lie inside `{}`, but have {}", ...);

Upstream ClickHouse#99138 renamed that parameter in MergeTreeSettings::loadFromQuery and narrowed what it means:

-  auto disk_name = DiskFromAST::createCustomDisk(value_as_custom_ast, context, is_attach);
+  auto disk_name = DiskFromAST::createCustomDisk(value_as_custom_ast, context, is_loading_from_existing_metadata);

It is now true only when the server loads its own stored metadata, not when a user issues ATTACH TABLE ... (definition). ClickBench issues exactly that, so the check now runs and rejects /dev/shm/clickhouse/.

The fix

Backport upstream #105088 (merge 48ea778c32e5) to stable-26.3. It touches two CI files and no product code:

  • adds ci/jobs/scripts/clickbench/filesystem_caches_path.xml, pointing filesystem_caches_path and custom_cached_disks_base_directory at /dev/shm/clickhouse/
  • makes ci/jobs/clickbench.py copy that file into config.d/

Additional context

CI failure

Merge window

date commit branch Load the data
2026-09-17 0a634798937 stable-26.3 success
2026-09-18 cde98ffcf06 v26.3.33.10001.altinitystable failure

The ClickHouse#99138 backport is commit 04fa8a3a879 (2026-07-21). It is not an ancestor of 0a634798937 and is an ancestor of cde98ffcf06.

Which branches have which half

branch ClickHouse#99138 (behaviour) ClickHouse#105088 (CI fix) ClickBench
ClickHouse/ClickHouse:26.3 yes no broken
Altinity/ClickHouse:stable-26.3 yes no broken
upstream 26.6, 26.8 yes yes ok
antalya-26.6, antalya-26.8 yes yes ok
antalya-26.3 no no ok — has neither

Related PRs

Activity

  1. added
    bug
    cicd
    on Sep 18, 2026
  2. CarlosFelipeOR commented on Sep 22, 2026

    @CarlosFelipeOR
    CollaboratorAuthor

    Fixed by #2411 and #2413

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcicdstable

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions