[MXS-4896] Reducing the size of the query classifier cache does not cause excess entries to be freed. Created: 2023-12-13 Updated: 2024-01-02 Resolved: 2024-01-02 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | QueryClassifier |
| Affects Version/s: | None |
| Fix Version/s: | 6.4.14, 22.08.12, 23.02.9, 23.08.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Johan Wikman | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | MXS-SPRINT-198 |
| Description |
|
If the size of the query classifier cache is reduced at runtime, it will not cause the cache to be shrunk. After a full cache is shrunk, entries will be freed at insert to allow a new item to be inserted, but it is not checked whether the current total size is below the new max size. Hence, reducing the size at runtime does not free memory the way one would expect. |