[MDEV-22795] Query cache still activated in Ubutu pacakges Created: 2020-06-04 Updated: 2020-06-11 Resolved: 2020-06-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration, Platform Debian, Query Cache |
| Affects Version/s: | 10.2.31, 10.1.45, 10.3.23, 10.4.13 |
| Fix Version/s: | 10.5.4 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Hartmut Holzgraefe | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
query_cache_type default was changed from ON to OFF with MariaDB 10.1 GA, and it is OFF when installing from source, from a binary tarball, or from RPM packages on RHEL/CentOS Query cache is ending up still being enabled on Ubuntu (and probably Debian, too), all the way to MariaDB 10.4, as there the distributed my.cnf contains {{query_cache_size = 64M}} As this setting is different from the compiled in default of 1M, this automatically sets query_cache_type to ON, too, as documented:
https://mariadb.com/kb/en/server-system-variables/#query_cache_type Given that having the query cache enabled usually is doing more harm than good, we should make sure to have it disabled on all platforms by default: Suggested fix: at least comment out all query_cache_...=... lines in all distributed config files, or remove them completely |
| Comments |
| Comment by Sergei Golubchik [ 2020-06-04 ] |
|
set to Blocker to make sure we decide what to do before 10.5-GA |
| Comment by Hartmut Holzgraefe [ 2020-06-04 ] |
|
Becomes even more tricky as even with explicit query_cache_type=OFF in the config after query_cache_size=... the cache will still be enabled, not disabled. |
| Comment by Daniel Black [ 2020-06-04 ] |
|
its part of https://github.com/MariaDB/server/pull/1504/files |