[MDEV-29250] InnoDB: Failing assertion: table->get_ref_count() == 0 Created: 2022-08-05 Updated: 2022-08-23 Resolved: 2022-08-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Full-text Search, Storage Engine - InnoDB |
| Affects Version/s: | 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.9.2, 10.10.1, 10.6.10, 10.7.6, 10.8.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Marko Mäkelä | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | regression-10.6 | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The fix of
I think that a similar problem (crash of a non-debug server) may affect DROP TABLE as well as any table rebuild operation (including OPTIMIZE TABLE and TRUNCATE TABLE) on tables that contain FULLTEXT INDEX. |
| Comments |
| Comment by Marko Mäkelä [ 2022-08-05 ] | |||||||||||||||||||||||||||
|
So far, I failed to reproduce the crash with the following test, which is based on the failing section of the main.alter_table test:
I think that purge is running on the table because of the hidden metadata records for instant ADD COLUMN. I believe that the following test should be equivalent, but also it fails to fail for me:
| |||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-08-05 ] | |||||||||||||||||||||||||||
|
With the following code patch, I finally had some success, on the 38th round when running 115 concurrent tests and --innodb-purge-threads=20. This was with the last test variant (CREATE, INSERT, DELETE, ALTER, DROP):
I think that it could have failed in a similar way during the ALTER TABLE, but I may be mistaken.
| |||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2022-08-05 ] | |||||||||||||||||||||||||||
|
Patch is in bb-10.6- | |||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-08-09 ] | |||||||||||||||||||||||||||
|
The revised patch looks correct to me. OK to push after addressing my comments, and after this has passed stress testing. | |||||||||||||||||||||||||||
| Comment by Matthias Leich [ 2022-08-18 ] | |||||||||||||||||||||||||||
|
|