[MDEV-28542] Useless INSERT BUFFER AND ADAPTIVE HASH INDEX output in SHOW ENGINE INNODB STATUS Created: 2022-05-11 Updated: 2022-06-06 Resolved: 2022-06-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Fix Version/s: | 10.10.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | performance | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Starting with MariaDB Server 10.5.0, the InnoDB adaptive hash index is disabled by default ( There are two counters btr_cur_n_non_sea and btr_cur_n_sea that can be used to determine the usefulness of the adaptive hash index. These counters are only exposed via SHOW ENGINE INNODB STATUS, via the section INSERT BUFFER AND ADAPTIVE HASH INDEX, which includes output like this:
It does not make any sense to update the counter btr_cur_n_non_sea when the adaptive hash index is disabled. As noted in However, removing the update is a user-visible change, because the above output would show something like the following even when the adaptive hash index is disabled:
Therefore, we cannot remove the counter update (or the message output) in any generally available release series. |
| Comments |
| Comment by Marko Mäkelä [ 2022-05-13 ] | |
|
It turns out that the update of the counter btr_cur_n_non_sea was removed already by krunalbauskar in
In case some user has scripting around the output, we will not remove that message in a GA release, but only in the upcoming MariaDB Server 10.10. | |
| Comment by Marko Mäkelä [ 2022-05-13 ] | |
|
As part of this change, I will also hide the INSERT BUFFER section when the change buffer is empty. By default, it should be empty, because the default was changed to innodb_change_buffering=none in |