[MDEV-21563] FTS thread aborts during shutdown Created: 2020-01-24 Updated: 2020-08-25 Resolved: 2020-02-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.1.45, 10.2.32, 10.3.23, 10.4.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Hill (Inactive) | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
This was original opened against Columnstore using build 1.2.5. CS Eng reported it was a crash in InnoDB. May need to be an MDEV ticket. So opening this ticket from Customer reporting that everytime they do a systemShutdown, the mysqld_safe and mysql still show to be running after shutdown is completed. I worked with them to just try running the below commands to see what happens when nothing else of going on, and it still crashed
Log files always shows the same thing,
------------------------ There are 21 events in the mysql.event table that are enabled i tried turning off event scheduler but that didn't help still crashed on shutdown |
| Comments |
| Comment by Marko Mäkelä [ 2020-02-04 ] | |||||||||||||||||||||||||||||||||||||||||||
|
The source code line that causes the SIGSEGV in btr_cur_search_to_nth_level_func() was modified in
A possible explanation might be that ALTER TABLE…DISCARD TABLESPACE had been executed on the table. Would we remove the table from the work queue of the fulltext index optimizer in that case? Or in other cases where dict_table_t::space can be assigned to be the null pointer? | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2020-02-06 ] | |||||||||||||||||||||||||||||||||||||||||||
|
The following test case does crash during shutdown :
The following patch solves the issue:
Problem is that, while discarding the fts tablespace, InnoDB fails to remove the table from fts_optimize_wq. This patch does remove the table from fts_optimize_wq. |