Skip to content

Commit 35e18c2

Browse files
committed
race condition in the test
this test loads sql_errlog plugin. then in a second connection it triggers an error, this locks the plugin in that thd. then the plugin is uninstalled in the default connection. but that doesn't unload the plugin, as it's still locked. it'll auto-unload after the foo connection is closed. without an explicit disconnect it is closed after mysqltest exits and the post-test check might still see sql_errlog not fully unoaded.
1 parent b65ffe1 commit 35e18c2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mysql-test/suite/sys_vars/r/sysvars_star.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ global_value_path NULL
108108
connection default;
109109
select global_value_path from information_schema.system_variables where variable_name='plugin_maturity';
110110
global_value_path var/my.cnf
111+
disconnect foo;
111112
drop user foo@localhost;
112113
set global low_priority_updates=default;
113114
uninstall soname 'sql_errlog';

mysql-test/suite/sys_vars/t/sysvars_star.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ select global_value_path from information_schema.system_variables where variable
3434
connection default;
3535
replace_regex /\/.*\//var\//;
3636
select global_value_path from information_schema.system_variables where variable_name='plugin_maturity';
37-
37+
disconnect foo;
3838
drop user foo@localhost;
3939
set global low_priority_updates=default;
4040
disable_warnings;
4141
uninstall soname 'sql_errlog';
42+
let $count_sessions= 1;
43+
source include/wait_until_count_sessions.inc;

0 commit comments

Comments
 (0)