[MDEV-29672] Add MTR tests covering key and key segment flags and types Created: 2022-09-30 Updated: 2022-10-13 Resolved: 2022-10-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - MyISAM |
| Fix Version/s: | 10.4.27, 10.5.18, 10.6.11, 10.7.7, 10.8.6, 10.9.4, 10.10.2 |
| Type: | Task | Priority: | Critical |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
In order to fix these bugs without regressions:
let's add MTR debug tests to print verbose information about keys and key segments. 1. KEY::name and KEY::flag in mysql_prepare_create_table() The underlying code is very hard to understand and simplify. The way how flags HA_SPACE_PACK_USED, HA_VAR_LENGTH_KEY, HA_PACK_KEY, HA_BINARY_PACK_KEY walk through the code are especually hard to follow. We need to make sure that after fixes for The proposed test should work in debug builds and display flags using server Notes: About the following output should be descriptive enough:
The new test should cover all essential data type pairs as well as partial key lengths for TEXT. Pairs are needed because flags are calculated in different ways on the first key segment versus other key segments. |