You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test case was not waiting for a prior --send to have proceeded far
enough before attempting to KILL it. This meant the KILL could get lost if
timing delayed the connection in --send.
Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
Copy file name to clipboardExpand all lines: mysql-test/main/debug_sync.test
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -454,21 +454,20 @@ SET DEBUG_SYNC= 'RESET';
454
454
--echo #
455
455
create table t (c int) engine=innodb;
456
456
--connect con1,localhost,root
457
-
set debug_sync='get_schema_column WAIT_FOR go';
457
+
set debug_sync='get_schema_column SIGNAL waiting WAIT_FOR go';
458
458
send select column_name from information_schema.columns
459
459
where table_schema='test' and table_name='t';
460
460
461
461
--connection default
462
-
let $wait_condition=select 1 from information_schema.processlist where state like 'debug sync point%';
463
-
--source include/wait_condition.inc
462
+
set debug_sync= 'now WAIT_FOR waiting';
464
463
let $connid=`select connection_id()`;
465
464
lock table t write;
466
465
send alter table t discard tablespace;
467
466
468
467
--connect con2,localhost,root
469
-
--disable_query_log
470
-
--eval kill query $connid
471
-
--enable_query_log
468
+
--let $wait_condition= SELECT COUNT(*)=1 FROM information_schema.processlist WHERE id=$connid AND state='Waiting for table metadata lock' AND INFO='alter table t discard tablespace'
0 commit comments