Repository navigation
Functional tests: ignore benign filesystem-cache background-download No such key - #112157
Conversation
…No such key The "Lost s3 keys" / "S3_ERROR No such key thrown" checks of the functional tests jobs report the filesystem cache background download worker error as a lost object. The worker (CacheMetadata) keeps prefetching a partially downloaded file segment whose remote object can be concurrently removed (DROP, mutation, part removal), so the GET returns Code: 499 NoSuchKey, the download is marked as failed and the data is re-read from the source later - nothing is lost. tests/docker_scripts/stress_tests.lib already ignores this line (#108489), the functional tests checks did not, so `Stateless tests (*, s3 storage, *)` failed with all tests green. Both checks run the same scan, so the ignore list is built once. Also removed an accidentally duplicated "Lost forever for SharedMergeTree" check.
|
Workflow [PR], commit [b407a54] Summary: ✅ AI ReviewSummaryThis PR aligns Final Verdict
|
|
The single red job Related: #109023 (widening-cast class, Merged |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Stateless tests (amd_tsan, s3 storage, parallel, 1/3)fails on master with all 4050 tests green - only two server-log health checks fail, on the same single log line:Report (
efccb01cfb8d5c3cd65e763059f13337283b473e, an unrelated merge of #111725):The filesystem cache background download worker (
CacheMetadata::downloadThreadFunc,src/Interpreters/FileCache/Metadata.cpp) continues prefetching a partially downloaded file segment. The underlying object can be removed concurrently (DROP, mutation, part removal), so the GET returnsCode: 499NoSuchKey; the worker catches it, marks the segment download as failed and logs the message without rethrowing - the data is simply re-read from the source later, so nothing is lost.tests/docker_scripts/stress_tests.libalready ignores this line (#108489, merged 2026-06-28), but the functional tests jobs run their own copy of the scan inci/jobs/scripts/clickhouse_proc.py, which did not get the exclusion. The tokenError during background downloadis unique to thatCacheMetadatalog line, so aNo such keyreported from any other path is still flagged (e.g. the foreground merge-read variant of #111188 stays visible).Chronic, unrelated to any PR: 3 occurrences of exactly this signature in
Stateless tests (amd_tsan, s3 storage, parallel, 1/3)in the last 90 days (PR #110121 on 2026-07-14, PR #111029 on 2026-07-24, master on 2026-07-27), ~1 per run.Drive-by cleanups in the same block:
Lost s3 keysandS3_ERROR No such key thrown (...)) ran two copies of the same command that had already drifted apart by a stray double space - the command is now built once, so they cannot drift;Lost forever for SharedMergeTreecheck (the same name and command were appended twice).Testing
ci/tests/test_lost_s3_keys_check.pyrunsClickHouseProc.check_fatal_messages_in_logsagainst a fake log dir:OK;No such keyfrom a foreground merge read -> both checksFAILand report the merge line, not the background-download one.Both tests fail on master without the fix. Full
pytest ci/tests/passes locally (except the 4test_print_stacktraces.pycases that require a liveclickhouse-server).Version info
26.8.1.370(included in26.8and later)