mariadb/mysql-test/suite/maria
Monty 403dacf6a9 Fixed crash in aria recovery when using bulk insert
MDEV-20578 Got error 126 when executing undo undo_key_delete
upon Aria crash recovery

The crash happens in this scenario:
- Table with unique keys and non unique keys
- Batch insert (LOAD DATA or INSERT ... SELECT) with REPLACE
- Some insert succeeds followed by duplicate key error

In the above scenario the table gets corrupted.

The bug was that we don't generate any undo entry for the
failed insert as the whole insert can be ignored by undo.
The code did however not take into account that when bulk
insert is used, we would write cached keys to the file on
failure and undo would wrongly ignore these.

Fixed by moving the writing of the cache keys after we write
the aborted-insert event to the log.
2020-05-26 20:05:17 +03:00
..
alter.result MDEV-17576 Assertion in maria_extra upon ALTER on table with triggers and locks 2019-06-25 16:17:29 +03:00
alter.test MDEV-17576 Assertion in maria_extra upon ALTER on table with triggers and locks 2019-06-25 16:17:29 +03:00
aria_pack_mdev14183.result MDEV-14183: aria_pack segfaults in compress_maria_file 2020-01-23 14:20:57 +03:00
aria_pack_mdev14183.test MDEV-14183: aria_pack segfaults in compress_maria_file 2020-01-23 14:20:57 +03:00
bulk_insert_crash.opt Fixed crash in aria recovery when using bulk insert 2020-05-26 20:05:17 +03:00
bulk_insert_crash.result Fixed crash in aria recovery when using bulk insert 2020-05-26 20:05:17 +03:00
bulk_insert_crash.test Fixed crash in aria recovery when using bulk insert 2020-05-26 20:05:17 +03:00
collations.result MDEV-10759 Fix Aria to support 2-byte collation IDs 2016-12-02 14:05:16 +02:00
collations.test MDEV-10759 Fix Aria to support 2-byte collation IDs 2016-12-02 14:05:16 +02:00
compat_aliases-master.opt
concurrent.result Merge 10.1 into 10.2 2018-08-31 15:10:02 +03:00
concurrent.test MDEV-15797 Assertion `thd->killed != 0' failed in ha_maria::enable_indexes 2018-08-27 22:00:14 +03:00
create.result MDEV-17067 Server crash in write_block_record 2018-08-24 21:03:22 +03:00
create.test MDEV-17067 Server crash in write_block_record 2018-08-24 21:03:22 +03:00
distinct.result
distinct.test
dynamic.result MDEV-13748 Assertion `status_var.local_memory_used == 0 || !debug_assert_on_not_freed_memory' failed in virtual THD::~THD after query with INTERSECT 2018-02-14 18:41:37 +01:00
dynamic.test MDEV-13748 Assertion `status_var.local_memory_used == 0 || !debug_assert_on_not_freed_memory' failed in virtual THD::~THD after query with INTERSECT 2018-02-14 18:41:37 +01:00
encrypt-wrong-key.result MDEV-8724 Assertion `rc == 0' failed in ma_decrypt on reading an Aria table 2016-01-28 14:06:05 +02:00
encrypt-wrong-key.test maria.encrypt-wrong-key - cleanup properly 2016-09-17 21:55:51 +02:00
fulltext2.result MDEV-9137 MariaDB Crash on Query Using Aria Engine 2018-09-22 00:22:09 +02:00
fulltext2.test MDEV-9137 MariaDB Crash on Query Using Aria Engine 2018-09-22 00:22:09 +02:00
group_commit.result
group_commit.test
icp.result Merge 10.1 into 10.2 2019-09-23 08:26:08 +03:00
icp.test Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
insert_select-7314.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
insert_select-7314.test
insert_select.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
insert_select.test
kill.result MDEV-14996 kill during FLUSH TABLES FOR EXPORT causes assert 2019-06-27 20:57:25 +03:00
kill.test MDEV-14996 kill during FLUSH TABLES FOR EXPORT causes assert 2019-06-27 20:57:25 +03:00
lock.result Fixed bug in lock tables + alter table with Aria tables. 2019-10-16 18:40:31 +03:00
lock.test Fixed bug in lock tables + alter table with Aria tables. 2019-10-16 18:40:31 +03:00
locking.result
locking.test
maria-autoinc.result MDEV-15352 AUTO_INCREMENT breaks after updating a column value to a negative number 2018-06-14 13:13:23 +04:00
maria-autoinc.test MDEV-15352 AUTO_INCREMENT breaks after updating a column value to a negative number 2018-06-14 13:13:23 +04:00
maria-autozerofill.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-autozerofill.test
maria-big.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-big.test Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
maria-big2.result
maria-big2.test
maria-connect.result
maria-connect.test
maria-gis-recovery.opt
maria-gis-recovery.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-gis-recovery.test Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
maria-gis-rtree-dynamic.result MDEV-12462 SPATIAL index fails to work with CONTAINS. 2017-05-02 16:24:42 +04:00
maria-gis-rtree-dynamic.test MDEV-7635: Update tests to adapt to the new default sql_mode 2017-02-10 06:30:42 -05:00
maria-gis-rtree-trans.result MDEV-12462 SPATIAL index fails to work with CONTAINS. 2017-05-02 16:24:42 +04:00
maria-gis-rtree-trans.test MDEV-7635: Update tests to adapt to the new default sql_mode 2017-02-10 06:30:42 -05:00
maria-gis-rtree.result MDEV-12462 SPATIAL index fails to work with CONTAINS. 2017-05-02 16:24:42 +04:00
maria-gis-rtree.test MDEV-7635: Update tests to adapt to the new default sql_mode 2017-02-10 06:30:42 -05:00
maria-mvcc.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-mvcc.test
maria-no-logging.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-no-logging.test Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
maria-page-checksum.result
maria-page-checksum.test
maria-partitioning.result
maria-partitioning.test
maria-preload.result
maria-preload.test
maria-purge.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-purge.test
maria-recover-master.opt MDEV-8542 - The "aria_recover" variable should be renamed "aria_recover_options" 2015-11-26 11:34:17 +04:00
maria-recover.result MDEV-7635: Part 1 2017-02-10 06:30:42 -05:00
maria-recover.test Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
maria-recovery-big-master.opt
maria-recovery-big.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery-big.test
maria-recovery-bitmap-master.opt
maria-recovery-bitmap.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery-bitmap.test
maria-recovery-master.opt
maria-recovery-rtree-ft-master.opt
maria-recovery-rtree-ft.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery-rtree-ft.test
maria-recovery.result Fixed bug in redo handling of batch insert in Aria 2019-03-14 12:19:32 +02:00
maria-recovery.test Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
maria-recovery2-master.opt
maria-recovery2.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery2.test
maria-recovery3-master.opt
maria-recovery3.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria-recovery3.test
maria-ucs2.result MDEV-7635: Update tests to adapt to the new default sql_mode 2017-02-10 06:30:42 -05:00
maria-ucs2.test MDEV-7635: Update tests to adapt to the new default sql_mode 2017-02-10 06:30:42 -05:00
maria.result Merge branch '10.1' into 10.2 2018-09-14 08:47:22 +02:00
maria.test Merge branch '10.1' into 10.2 2018-09-14 08:47:22 +02:00
maria2.result
maria2.test
maria3.result Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
maria3.test Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
maria_notembedded.result MDEV-7635: Part 1 2017-02-10 06:30:42 -05:00
maria_notembedded.test MDEV-7635: Part 1 2017-02-10 06:30:42 -05:00
maria_partition.result
maria_partition.test
maria_showlog_error.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
maria_showlog_error.test
max_length.result Fixed MDEV-14326 engine ARIA with row_format=FIXED is broken 2018-01-18 15:19:32 +02:00
max_length.test Fixed MDEV-14326 engine ARIA with row_format=FIXED is broken 2018-01-18 15:19:32 +02:00
mrr.result
mrr.test
optimize.result
optimize.test
ps_maria.result MDEV-7635: Update tests to adapt to the new default sql_mode 2017-02-10 06:30:42 -05:00
ps_maria.test
repair.result MDEV-11539 test_if_reopen: Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed upon select from I_S 2018-01-25 14:03:24 +01:00
repair.test MDEV-11539 test_if_reopen: Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed upon select from I_S 2018-01-25 14:03:24 +01:00
small_blocksize-master.opt
small_blocksize.result
small_blocksize.test
suite.pm MDEV-8542 - The "aria_recover" variable should be renamed "aria_recover_options" 2015-11-26 11:34:17 +04:00
temporary.result MDEV-19595 fixed 2019-06-19 00:35:44 +03:00
temporary.test MDEV-19595 fixed 2019-06-19 00:35:44 +03:00
truncate.result
truncate.test