[MDEV-28545] MyISAM reorganize partition corrupt older table format Created: 2022-05-12 Updated: 2023-07-20 Resolved: 2022-10-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Partitioning, Storage Engine - MyISAM, Temporal Types |
| Affects Version/s: | 10.6.8, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| 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: | Bug | Priority: | Critical |
| Reporter: | VAROQUI Stephane | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
for the table definition:
After restoring a snapshot of MariaDB 10.3 datadir upgrade mariadb and system tables to 10.6 And run following query
The table get corrupted |
| Comments |
| Comment by Richard DEMONGEOT [ 2022-05-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Works after an alter table on InnoDB Works also if - starting from the snapshot - alter table engine=MyISAM In all cases : | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2022-05-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Looks like altering back to MyISAM is fixing the issue | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by VAROQUI Stephane [ 2022-05-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
mysql_upgrade --force does not rewrite the MyISAM tables | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Richard DEMONGEOT [ 2022-05-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Even with truncated tables it fails. (empty but comes from an old version) Before to alter table :
After the add partition
Edit : Current 10.3 (corrupted?) empty tables/partitions are uploaded into file table-sample.tgz. Last created partition : p20220515 Next day should be :
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2022-07-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2022-10-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello serg, can you please review a patch: |