Skip to content

Antalya 26.8 Backport of #123176 - Fix a race between the filesystem cache cleanup thread and FileCacheTest.ReserveUndoneWhenKeyDirectoryCannotBeCreated - #2952

Merged
zvonand merged 1 commit into
antalya-26.8from
backports/antalya-26.8/123176
Nov 25, 2026
Merged

zvonand merged 1 commit into
antalya-26.8from
backports/antalya-26.8/123176

Conversation

@blau-ai

@blau-ai blau-ai commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

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

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix a race in the FileCacheTest.ReserveUndoneWhenKeyDirectoryCannotBeCreated unit test that could abort the whole unit_tests_dbms run. (ClickHouse#123176 by @groeneai)

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

…rve-undone-cleanup-race

Fix a race between the filesystem cache cleanup thread and FileCacheTest.ReserveUndoneWhenKeyDirectoryCannotBeCreated
@github-actions

Copy link
Copy Markdown

Workflow [PR], commit [443a1b6]

@zvonand
zvonand marked this pull request as ready for review November 25, 2026 13:42
@zvonand

zvonand commented Nov 25, 2026

Copy link
Copy Markdown
Member

@blau-ai

@blau-ai

blau-ai commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

CI triage for #2952 (head 443a1b6)

Verdict: 5 failing check groups. None are caused by the PR's code: 0 PR-caused, 4 pre-existing or infra, 1 process-only (DCO).

This PR changes only one test file, src/Interpreters/tests/gtest_filecache.cpp, and the change is small: it moves fs::remove(key_path) to before the segment is released. That code is built only into the unit-test binary, so it can't change the behaviour of the server or keeper images that the regression and Grype jobs test. The suites that do run this test, Unit tests (asan_ubsan) and Unit tests (asan_ubsan, function_prop_fuzzer), both passed.

Check Classification Caused by PR?
Regression release iceberg_1 / iceberg_2 Bug in the test harness (Python import error) No (pre-existing)
Regression release swarms Known failures in two cpu overload scenarios (socket timeout) No (pre-existing)
Grype Scan (keeper, server-alpine) OpenSSL CVEs in the base Docker images No (pre-existing)
DCO No Signed-off-by in the backported commit message Process only

1. RegressionTestsRelease / Iceberg (1) and Iceberg (2): harness error

✘ 55m 30s   [ Error  ] /iceberg
    ModuleNotFoundError: No module named 'iceberg.requirements.aggregate_states'
1 module (1 errored)
25 features (23 ok, 2 skipped)
478 scenarios (474 ok, 4 xfail)

iceberg_2 shows the same error: 470 scenarios, 466 ok, 4 xfail. Every scenario passed. The module is marked as errored because the regression test code tries to import a requirements module that doesn't exist. That is a problem in the regression suite, not in ClickHouse.

2. RegressionTestsRelease / Swarms: node failure/cpu overload

✘ [ Fail ] '/swarms/feature/node failure/cpu overload' (5m 3s)
✘ [ Fail ] '/swarms/feature/node failure/cpu overload all swarm nodes' (5m 7s)
Code: 209. DB::Exception: ... Timeout exceeded while reading from socket (socket (172.18.0.8:9000), receive timeout 300000 ms): While executing Remote. (SOCKET_TIMEOUT)
1535 scenarios (1519 ok, 2 failed, 14 skipped)

3. Grype Scan: clickhouse-keeper and clickhouse-server-alpine

Grype Scan Completed with 5 high/critical vulnerabilities
Fail CVE-2026-107493 / CVE-2026-107494 / CVE-2026-121482 / CVE-2026-84786 / CVE-2026-124709 (High)

The advisories point to openssl/openssl, so these are vulnerable packages in the base images, not anything ClickHouse builds.

4. DCO

The only commit's message is upstream's merge message (Merge pull request #123176 from groeneai/fix-filecache-reserve-undone-cleanup-race ...), and it has no Signed-off-by: line. Other backports have the same problem; #2950 also fails DCO.

  • Next step: if DCO is required to merge, a maintainer can mark it as passed in the DCO app. The alternative is to amend the commit with -s, but that needs a force-push, which I'm not allowed to do.

Bottom line: this PR doesn't introduce any failures, and the test it fixes passes in both asan_ubsan unit-test suites. All the red checks also fail on other antalya-26.8 PRs, so they shouldn't block this backport. What I did: read the CI job logs, pulled the regression failure lists from the S3 artifacts, and compared with sibling PRs #2950, #2954, #2956 and #2958. I didn't re-run anything locally.

@zvonand zvonand added the verified Approved for release label Nov 25, 2026
@zvonand
zvonand merged commit 8b52eb2 into antalya-26.8 Nov 25, 2026
312 of 323 checks passed
@blau-ai blau-ai mentioned this pull request Nov 26, 2026
9 of 30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants