[MDEV-21269] Parallel merging of fts index rebuild fails Created: 2019-12-10 Updated: 2020-05-18 Resolved: 2020-05-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.3.7, 10.4.0, 10.3.20, 10.5.0 |
| Fix Version/s: | 10.5.4, 10.3.24, 10.4.14 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Ovidiu Stanila | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | fulltext, innodb | ||
| Environment: |
CentOS 7.7.1908 - kernel 3.10.0-1062.7.1.el7.x86_64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
While issuing ALTER on a InnoDB table with FTS MariaDB breaks with a segmentation fault: kernel: mysqld[812]: segfault at 0 ip 00005649f0b31ac8 sp 00007febffffd0b0 error 6 in mysqld[5649efe3e000+12c9000] MariaDB [test]> optimize table t;
-------
------- MariaDB [test]> optimize table t;
-------
------- MariaDB [test]> optimize table t; We managed to replicate this after around 3 consecutive calls of ALTER TABLE t ENGINE=InnoDB; after the initial data import. If we remove the FTS index there are no more issues. I've attached to this ticket the backtrace, MariaDB log, configuration and sample data used to replicate the issue. If you require any additional info, just let me know. |
| Comments |
| Comment by Marko Mäkelä [ 2019-12-10 ] | |||||||||||||||||||||||||||||||||||
|
Relevant part of backtrace.txt
Could it be that we have fts_sort_pll_degree <= 2 (so that row_fts_build_sel_tree() did nothing) and sel_tree==NULL for some reason? The minimum value of innodb_ft_sort_pll_degree appears to be 1, and the default is 2. | |||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2020-05-15 ] | |||||||||||||||||||||||||||||||||||
|
I can repeat the issue in 10.3.20 in debug build as well as release build. | |||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2020-05-16 ] | |||||||||||||||||||||||||||||||||||
|
The following patch solves the issue:
| |||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2020-05-17 ] | |||||||||||||||||||||||||||||||||||
|
Pushed the patch with the reason in bb-10.3- | |||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-05-18 ] | |||||||||||||||||||||||||||||||||||
|
I see that that the code was broken in MariaDB 10.3.7 by me, in a preparatory effort for |