| Bug #34444 | Merge table breaks when upgrading from 4.1 to 5.0 or 5.1 | ||
|---|---|---|---|
| Submitted: | 9 Feb 2008 17:51 | Modified: | 16 Jul 2008 0:47 |
| Reporter: | Venu Anuganti | ||
| Status: | Duplicate | ||
| Category: | Server: Merge | Severity: | S2 (Serious) |
| Version: | 5.0 or 5.1 | OS: | Any |
| Assigned to: | Target Version: | ||
| Tags: | Merge upgrade can not open file, merge table upgrade | ||
| Triage: | D3 (Medium) | ||
[9 Feb 2008 17:51]
Venu Anuganti
[9 Feb 2008 17:57]
Venu Anuganti
By the way this is related to HA_KEY_ALG_UNDEF as the default key in older versions where as the new one has either BTREE, RTREE, HASH or FULLTEXT). So, when you see UNDEF, then you may need to another level check what the underlying type is (may be only BTREE) and continue further without raising an error.
[9 Feb 2008 20:53]
Valeriy Kravchuk
Thank you for a problem report. Have you tried to run CHECK TABLE ... FOR UPGRADE for all the underlying tables in 5.0.x and 5.1.x?
[11 Feb 2008 9:27]
Shane Bester
verified using 4.0 -> 5.0.56. flush tables; drop table if exists merge_t1; drop table if exists base_t1; create table if not exists base_t1 (id int not null primary key)type = myisam; create table if not exists merge_t1 (id int not null primary key)type = mrg_myisam insert_method=last union=(base_t1); 1) execute the above on 4.0. 2) shutdown 4.0 and copy the files to 5.0.56 3) start 5.0.56 and try access the merge table. it fails 4) repair/check doesn't have any affect note - binary upgrades aren't recommended, but if this is avoidable (or a real bug), it could be fixed if possible. workaround: mysqldump and reload
[16 Jul 2008 0:47]
Trudy Pelzer
Duplicate of bug#31331.
