[MDEV-32205] Server crashes in get_schema_key_period_usage_record on server without InnoDB Created: 2023-09-19 Updated: 2024-01-15 |
|
| Status: | In Testing |
| Project: | MariaDB Server |
| Component/s: | Information Schema |
| Affects Version/s: | N/A |
| Fix Version/s: | 11.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Nikita Malyavin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
In MTR the one-line test can be run normally (as MTR already runs without InnoDB by default); upon using the client, start the server with --default-storage-engine=MyISAM --skip-innodb
|
| Comments |
| Comment by Nikita Malyavin [ 2023-09-21 ] | ||
|
A devil jerked my hand to make a refactoring, that should prevent such kind of errors in future. Please review the following commits:
| ||
| Comment by Sergei Golubchik [ 2023-09-22 ] | ||
|
pretty good. 0e709489 is ok. questions about 0929cbbb:
| ||
| Comment by Nikita Malyavin [ 2023-09-25 ] | ||
|
serg, get_al_tables traverses all the tables and opens it. If the server was started without innodb, the innodb-backed table will not open, and an unknown storage engine error will be set in stmt_da. | ||
| Comment by Sergei Golubchik [ 2023-09-25 ] | ||
|
ok, please add something like
to your test at the beginning to show that there is an InnoDB table somewhere | ||
| Comment by Nikita Malyavin [ 2023-09-25 ] | ||
|
> could you take a quick look in if there were other I_S tables that didn't handle the open error? If yes — add tests for them too. I have run select on all the tables in the schema_tables array – no problems. The rest of the plugin doesn't make sense to check, since they use different approaches for filling the data. |