Repository navigation
Conversation
|
Workflow [PR], commit [89f656c] Summary: ⏳
|
|
Hi! There is no need to "merge master branch" unless there are conflicts, some tests failures can be unrelated to changes due to being flaky. |
|
Could you please add an integration test for the issue? See |
|
sure, let me add a test for this |
0006e43 to
d028244
Compare
|
The changes LGTM, but for some reason tests failed in |
|
Dear @kssenii, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
|
Continued in #101428. |
After rebasing onto current master, two of the original three changes in #86935 are no longer applicable: 1. The `FileCacheQueryLimit::QueryContext::remove` -> `tryRemove` rename was needed because `EvictionCandidates::finalize` called `query_context->remove(...)` for every evicted entry. That call site was removed from master in 62ffdf7, so `tryRemove` had no callers and was effectively dead code. Reverting the `QueryLimit.cpp` / `QueryLimit.h` changes to match master. 2. The integration test `test_caches_with_query_limit` was meant to reproduce the bug from #86855, but with the current `tryReserve` shape `query_priority_iterator->incrementSize` is unreachable on the first reservation (the iterator is only assigned inside the `!main_priority_iterator` branch and `add` does not return it), so the per-query `check` is no longer hit. The "Bugfix validation" job confirms this - the test passes against the master binary. Removing the test since it does not validate the fix. What remains is the `IFileCachePriority::check` change: treat `max_size = 0` and `max_elements = 0` as "no limit" (consistent with `canFit`, which already does so). This is a defensive guard for the per-query priority, which is constructed with `max_elements = 0`, matching the `0 == unlimited` convention used elsewhere. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=101428&sha=95a5413b6250fe9b49e79ae60f50d1babb31909b&name_0=PR Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ry_limit Merging ClickHouse#86935: Fix logical error when enable enable_filesystem_query_cache_limit
…ical error when enable enable_filesystem_query_cache_limit
Changelog category (leave one):
Changelog entry (a [user-readable short description]
Fix #86855