Repository navigation
Backport #107028 to 26.5: Fix data race on FileCacheQueryLimit::query_map causing LOGICAL_ERROR - #114585
Conversation
…_map causing LOGICAL_ERROR
|
Workflow [BackportPR], commit [26b9bd4] Summary: ✅ |
|
This is my PR being backported, so here is what breaks and the exact change needed. The three amd builds fail only on Cause: I wrote the test against master, where The fix is 4 lines, at 2664-2665 and 2736-2737: - FilesystemCacheSettings cache_settings;
- cache_settings.max_download_size_per_query = 1024;
+ ReadSettings cache_settings;
+ cache_settings.filesystem_cache_max_download_size = 1024;Semantics are preserved: on 26.5 I am not proposing to backport One caveat on the other two: #114584 (26.3) and #114583 (25.8) also have this header at |
The two regression tests added by the backport were written against `master`, where `9de468d826bc1c4` renamed the settings type passed to `FileCacheQueryLimit::getOrSetQueryContext`. On 26.5 that method still takes `const ReadSettings &` and `FilesystemCacheSettings` does not exist, so clang typo-corrected it to the unrelated `FileCacheSettings` and the `amd_debug`, `amd_asan_ubsan` and `amd_tsan` builds failed on `src/Interpreters/tests/gtest_filecache.cpp`. The cherry-pick produced no textual conflict because both tests are appended at the end of the file. Use `ReadSettings` with `filesystem_cache_max_download_size`, which is the pre-rename spelling of the same value read by `getOrSetQueryContext` on this branch, so the assertions are unchanged. `ReadSettings` is only forward-declared in `QueryLimit.h`, so include `IO/ReadSettings.h` explicitly. Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114585&sha=46540245a0d34a4f50e96e6dabb0aa5b58a83b35&name_0=BackportPR Related: #114585 Related: #107028 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
🕵 Applied your fix, thanks for the precise diagnosis. Verified locally that the translation unit compiles against the 26.5 tree — the typo-correction errors are gone. I also merged |
Original pull-request #107028
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
26.5.7.53