[MDEV-7612] Assertins about FK lists and rb-tree not being in sync Created: 2015-02-20 Updated: 2020-08-25 Resolved: 2018-01-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Storage Engine - InnoDB |
| Affects Version/s: | 5.5.41 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 1 |
| Labels: | upstream | ||
| Sprint: | 5.5.59 |
| Description |
|
http://bugs.mysql.com/bug.php?id=75977 Even with bug #73650 (private) fixed there seem to be cases UT_LIST_GET_LEN(table->referenced_list) == rbt_size(table->referenced_rbt) assertion in dict_foreign_find() in innodb/dict/dict0dict.c Bug #73761 was closed as duplicate of #73650 (but not marked Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768489 And I've also seen one case where the same assertion was triggered ALTER TABLE `db1`.`t1` CHANGE COLUMN `some_id` `some_id` INT NOT NULL; Unfortunately the table this happened on had since been dropped and Nonetheless we have at least two cases (Debian bug report and mine) UT_LIST_GET_LEN(table->referenced_list) == rbt_size(table->referenced_rbt) assertion was hit in versions based on 5.5.40 and beyond that have the How to repeat: Do some ALTER operation on a table with foreign yet ... |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2018-01-10 ] |
|
Tried to repeat this using a test script that in a loop added/removed foreign key constraints, but could not repeat the reported assertion. |