Commit 124d74f5 authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.7 into 10.8

parents c41cbfaf ac3b33d2
...@@ -12,6 +12,7 @@ CREATE TABLE t1 ( ...@@ -12,6 +12,7 @@ CREATE TABLE t1 (
INSERT INTO t1 VALUES ('текст'); INSERT INTO t1 VALUES ('текст');
--connection node_2 --connection node_2
--source include/wait_until_ready.inc
SELECT f1 = 'текст' FROM t1; SELECT f1 = 'текст' FROM t1;
# #
......
...@@ -202,10 +202,10 @@ SET lock_wait_timeout = 10; ...@@ -202,10 +202,10 @@ SET lock_wait_timeout = 10;
ALTER TABLE t1 ROW_FORMAT=COMPACT ALTER TABLE t1 ROW_FORMAT=COMPACT
PAGE_COMPRESSED = YES PAGE_COMPRESSION_LEVEL = 1, ALGORITHM = INPLACE; PAGE_COMPRESSED = YES PAGE_COMPRESSION_LEVEL = 1, ALGORITHM = INPLACE;
connection default; connection default;
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt2';
INSERT INTO t1 SELECT 80 + c1, c2, c3 FROM t1; INSERT INTO t1 SELECT 80 + c1, c2, c3 FROM t1;
INSERT INTO t1 SELECT 160 + c1, c2, c3 FROM t1; INSERT INTO t1 SELECT 160 + c1, c2, c3 FROM t1;
UPDATE t1 SET c2 = c2 + 1; UPDATE t1 SET c2 = c2 + 1;
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt2';
SELECT name, count FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE subsystem = 'ddl'; SELECT name, count FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE subsystem = 'ddl';
name count name count
ddl_background_drop_indexes 0 ddl_background_drop_indexes 0
......
...@@ -195,13 +195,12 @@ ALTER TABLE t1 ROW_FORMAT=COMPACT ...@@ -195,13 +195,12 @@ ALTER TABLE t1 ROW_FORMAT=COMPACT
PAGE_COMPRESSED = YES PAGE_COMPRESSION_LEVEL = 1, ALGORITHM = INPLACE; PAGE_COMPRESSED = YES PAGE_COMPRESSION_LEVEL = 1, ALGORITHM = INPLACE;
# Generate some log (delete-mark, delete-unmark, insert etc.) # Generate some log (delete-mark, delete-unmark, insert etc.)
# while the index creation is blocked. Some of this may run # while the index creation is blocked.
# in parallel with the clustered index scan.
connection default; connection default;
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt2';
INSERT INTO t1 SELECT 80 + c1, c2, c3 FROM t1; INSERT INTO t1 SELECT 80 + c1, c2, c3 FROM t1;
INSERT INTO t1 SELECT 160 + c1, c2, c3 FROM t1; INSERT INTO t1 SELECT 160 + c1, c2, c3 FROM t1;
UPDATE t1 SET c2 = c2 + 1; UPDATE t1 SET c2 = c2 + 1;
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt2';
# At this point, the clustered index scan must have completed, # At this point, the clustered index scan must have completed,
# but the modification log keeps accumulating due to the DEBUG_SYNC. # but the modification log keeps accumulating due to the DEBUG_SYNC.
eval $innodb_metrics_select; eval $innodb_metrics_select;
......
...@@ -836,6 +836,7 @@ void log_write_up_to(lsn_t lsn, bool flush_to_disk, bool rotate_key, ...@@ -836,6 +836,7 @@ void log_write_up_to(lsn_t lsn, bool flush_to_disk, bool rotate_key,
ret_lsn2= flush_lock.release(flush_lsn); ret_lsn2= flush_lock.release(flush_lsn);
log_flush_notify(flush_lsn); log_flush_notify(flush_lsn);
DBUG_EXECUTE_IF("crash_after_log_write_upto", DBUG_SUICIDE(););
} }
if (ret_lsn1 || ret_lsn2) if (ret_lsn1 || ret_lsn2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment