| 1 |
# |
| 2 |
# Bug #29846292 ROLLBACK OF BIG TRANSACTION DUE TO CONFLICT REMAINS IN HUNG STATE |
| 3 |
# |
| 4 |
--source include/have_debug.inc |
| 5 |
--source include/have_innodb_max_16k.inc |
| 6 |
|
| 7 |
# Valgrind can hang or return spurious messages on DBUG_SUICIDE |
| 8 |
--source include/not_valgrind.inc |
| 9 |
|
| 10 |
|
| 11 |
CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 LONGBLOB, KEY(f2(50))) |
| 12 |
ENGINE=InnoDB; |
| 13 |
|
| 14 |
SHOW CREATE TABLE t1; |
| 15 |
|
| 16 |
START TRANSACTION; |
| 17 |
INSERT INTO t1 VALUES (1, REPEAT('abcdefghijklmnopqrstuvwxyz1234', 6006)); |
| 18 |
SET DEBUG = '+d,crash_middle_of_lob_rollback_6'; |
| 19 |
--source include/expect_crash.inc |
| 20 |
|
| 21 |
--error CR_SERVER_LOST |
| 22 |
ROLLBACK; |
| 23 |
|
| 24 |
--echo # Verify that before the crash, we HAVE NOT reached the index length=4 yet |
| 25 |
let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err; |
| 26 |
|
| 27 |
let SEARCH_PATTERN= Rolling back LOB for transaction \d+ undo number \d+ : current index length 4\.; |
| 28 |
--source include/search_pattern.inc |
| 29 |
|
| 30 |
|
| 31 |
--source include/start_mysqld.inc |
| 32 |
|
| 33 |
SELECT * FROM t1 FOR UPDATE; |
| 34 |
DROP TABLE t1; |
| 35 |
|
| 36 |
--echo # Verify that after the restart, we HAVE reached the index length=4 |
| 37 |
--source include/search_pattern.inc |