mariadb/mysql-test/suite
Marko Mäkelä e52315a4a2 MDEV-16855 Fix fts_sync_synchronization in InnoDB
This is a backport of the following fix from MySQL 5.7.23.
Some code refactoring has been omitted, and the test case has
been adapted to MariaDB.

commit 7a689acaa65e9d602575f7aa53fe36a64a07460f
Author: Krzysztof Kapuścik <krzysztof.kapuscik@oracle.com>
Date:   Tue Mar 13 12:34:03 2018 +0100

Bug#27082268 Invalid FTS sync synchronization

The fix closes two issues:
Bug #27082268 - INNODB: FAILING ASSERTION: SYM_NODE->TABLE != NULL DURING FTS SYNC
Bug #27095935 - DEADLOCK BETWEEN FTS_DROP_INDEX AND FTS_OPTIMIZE_SYNC_TABLE

Both issues were related to a FTS cache sync being done during
operations that perfomed DDL actions on internal FTS tables
(ALTER TABLE, TRUNCATE). In some cases the FTS tables and/or
internal cache structures could get removed while still being
used to perform FTS synchronization leading to crashes. In other
the sync operations could not get finishes as it was waiting for
dict lock which was taken by thread waiting for the background
sync to be finished.

The changes done includes:
- Stopping background operations during ALTER TABLE and TRUNCATE.
- Removal of unused code in FTS.
- Cleanup of FTS sync related code to make it more readable and
easier to maintain.

RB#18262
2018-07-30 18:06:30 +03:00
..
archive MDEV-12915 ST_Centroid does not return the same result than MySQL. 2017-08-01 09:52:56 +02:00
binlog MDEV-9266 Creating index on temporaray table breaks replication 2018-07-18 17:13:24 +05:30
csv MDEV-11883 MariaDB crashes with out-of-memory when query information_schema 2017-05-15 22:23:10 +02:00
engines include/master-slave.inc must always be included last 2017-09-20 18:17:50 +02:00
federated Merge branch '5.5' into 10.0 2018-06-12 17:59:31 +03:00
funcs_1 Merge branch '5.5' into 10.0 2018-06-12 17:59:31 +03:00
funcs_2 MDEV-11700 funcs_2.innodb_charset fails in buldbot on valgrind builder with timeout 2017-01-05 17:33:48 +02:00
handler Merge branch '5.5' into 10.0 2018-06-12 17:59:31 +03:00
heap Merge remote-tracking branch 'origin/5.5' into 10.0 2018-06-20 16:55:24 +04:00
innodb MDEV-16851 On schema mismatch in IMPORT TABLESPACE, display ROW_FORMAT in clear text 2018-07-30 13:13:43 +03:00
innodb_fts MDEV-16855 Fix fts_sync_synchronization in InnoDB 2018-07-30 18:06:30 +03:00
innodb_zip MDEV-14140 IMPORT TABLESPACE must not go beyond FSP_FREE_LIMIT 2017-11-06 14:55:34 +02:00
jp Merge branch '5.5' into 10.0 2015-10-09 17:12:26 +02:00
large_tests
maria Merge remote-tracking branch 'origin/5.5' into 10.0 2018-06-20 16:55:24 +04:00
mtr/t
mtr2
multi_source Fix spelling: occurred, execute, which etc 2016-03-04 02:09:37 +02:00
ndb
optimizer_unfixed_bugs MDEV-11231 Server crashes in check_duplicate_key on CREATE TABLE ... SELECT 2016-12-04 01:59:35 +01:00
parts MDEV-15551 Server hangs or assertion `strcmp(share->unique_file_name,filename) || share->last_version' fails in test_if_reopen or unexpected ER_LOCK_DEADLOCK 2018-07-19 11:35:39 +02:00
percona
perfschema Merge remote-tracking branch 'origin/5.5' into 10.0 2017-07-25 00:41:54 +03:00
perfschema_stress
plugins make plugins.processlist more robust 2018-07-24 18:29:17 +02:00
roles MDEV-12366: FLUSH PRIVILEGES can break hierarchy of roles 2017-12-19 12:33:25 +02:00
rpl MDEV-16229 Replication aborts with ER_VIEW_SELECT_TMPTABLE after half-failed RENAME 2018-05-22 23:05:48 +03:00
storage_engine MDEV-12915 ST_Centroid does not return the same result than MySQL 2017-08-01 09:52:59 +02:00
stress Fix spelling: occurred, execute, which etc 2016-03-04 02:09:37 +02:00
sys_vars Increase number of max table_open_cache instances 2018-04-26 14:21:36 +03:00
unit Merge branch '5.5' into 10.0 2018-06-21 00:44:10 +02:00
vcol Merge branch '5.5' into bb-10.0-merge 2018-07-17 16:56:21 +02:00