[MDEV-24548] log_slow_filter = not_using_index set automatically log_queries_not_using_indexes = 1 and overwrites long_query_time filter Created: 2021-01-08 Updated: 2022-08-01 Resolved: 2021-02-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation, Variables |
| Affects Version/s: | 10.3, 10.4, 10.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Richard Stracke | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | slow_query_log | ||
| Issue Links: |
|
||||||||
| Description |
|
In https://mariadb.com/kb/en/server-system-variables/#log_slow_filter is documented
So long_query_time is a mandatory condition for log_slow_filter. So log_slow_filter and log_slow_filter must be fulfilled. But this is not the case for option If you add "not_using_index" to log_slow_filter The root cause is, that adding to reproduce:
For "log_queries_not_using_indexes", it is documented,
But "not_using_index," as a "log_slow_filter" option should respect "long_query_time". |
| Comments |
| Comment by Elena Stepanova [ 2021-01-14 ] |
|
The mapping of log_slow_filter / not_using_index to log_queries_not_using_indexes was apparently intentional, done and mentioned in the comments in However, the KB not only doesn't say anything about the exception, but it doesn't list not_using_index switch in log_slow_filter at all. Both points should certainly be addressed in the documentation. |
| Comment by Ian Gilfillan [ 2021-02-22 ] |
|
Fixed. Note that enterprise docs have a typo and make mention of a non-existent setting, so those should be fixed there. |