# WL #15387: Innodb: Log progress information while resurrecting transaction during recovery. # Check whether the different resurrection logs are printed when a server crashes with an uncommitted transaction. CREATE TABLE IF NOT EXISTS t1 (col1 VARCHAR(60), col2 VARCHAR(60), col3 VARCHAR(60)); CREATE PROCEDURE bulk_ins() BEGIN DECLARE x INT; SET x = 1; lab: LOOP IF x > 50000 THEN LEAVE lab; END IF; INSERT INTO t1 VALUES (REPEAT('a', 60), REPEAT('b',60), REPEAT('c',60)); SET x = x + 1; END LOOP; END$$ CREATE PROCEDURE bulk_upd(n INTEGER) BEGIN DECLARE x INT; SET x = 1; lab: LOOP UPDATE t1 SET col1=REPEAT('b',60), col2=repeat('c',60), col3=repeat('a',60); UPDATE t1 SET col1=REPEAT('a',60), col2=repeat('b',60), col3=repeat('c',60); IF x > n THEN LEAVE lab; END IF; SET x = x + 1; END LOOP; END$$ BEGIN; CALL bulk_ins(); CALL bulk_upd(10); # Kill and restart: --log-error-verbosity=3 --debug=+d,resurrect_logs Pattern "Transaction ID:.* found for resurrecting inserts" found Pattern "Records read:.* - Pages read:.*" found Pattern "Transaction ID:.* found for resurrecting updates" found Pattern "Identified table ID:.* to acquire lock" found Pattern "Resurrected .* transaction.* doing inserts." found Pattern "Resurrected .* transaction.* doing updates." found Pattern "Acquired lock on table ID:.*, name:.*" found Pattern "Total records resurrected:.* - Total pages read:.* - Total tables acquired:.*" found DROP TABLE t1;