[MDEV-16580] Remove unused monitor counters from InnoDB Created: 2018-06-25 Updated: 2019-04-30 Resolved: 2018-11-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Fix Version/s: | 10.4.1 |
| Type: | Task | Priority: | Minor |
| Reporter: | Eugene Kosov (Inactive) | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Approximated list is here:
|
| Comments |
| Comment by Eugene Kosov (Inactive) [ 2018-06-28 ] | ||||||||||
|
Most of listed enum values actually used somewhere. Totally unused and safe for removal is MONITOR_TRX_ROLLBACK_ACTIVE - its value is always 0.
They should be at least mentioned in tests. A lot of monitors checked only in this test https://github.com/MariaDB/server/blob/10.4/mysql-test/suite/innodb/r/innodb_skip_innodb_is_tables.result And most of them have default values of 0. It can be time consuming to add tests for every monitor to see it non-zero. Thus, I propose just to remove totally unused one and mentions the rest in tests. | ||||||||||
| Comment by Marko Mäkelä [ 2018-06-29 ] | ||||||||||
|
Ideally, we should have actual test coverage of all the counters (that they are being incremented). This would also help the follow-up task MDEV-15706. I am reassigning the review, so that this can be pushed while I am on vacation. | ||||||||||
| Comment by Eugene Kosov (Inactive) [ 2018-11-16 ] | ||||||||||
|
Adding this to some test will increase code coverage slightly:
| ||||||||||
| Comment by Marko Mäkelä [ 2018-11-16 ] | ||||||||||
|
I filed the follow-up task MDEV-17732 for improving the coverage of the remaining counters. |