Skip to content

Commit

Permalink
MDEV-27775 : Some Galera tests fail on FreeBSD due to "unknown signal 9"
Browse files Browse the repository at this point in the history
Replace 9 with KILL
  • Loading branch information
Jan Lindström committed Mar 22, 2022
1 parent 8f4d7e3 commit cade21b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion mysql-test/suite/galera/include/kill_galera.inc
Expand Up @@ -16,7 +16,7 @@ if (!$kill_signal)
--let KILL_NODE_PIDFILE = `SELECT @@pid_file`

--perl
my $kill_sig = $ENV{'KILL_SIGNAL_VALUE'}
my $kill_sig = $ENV{'KILL_SIGNAL_VALUE'};
my $pid_filename = $ENV{'KILL_NODE_PIDFILE'};
my $mysqld_pid = `cat $pid_filename`;
chomp($mysqld_pid);
Expand Down
1 change: 1 addition & 0 deletions mysql-test/suite/galera/r/galera_ist_restart_joiner.result
Expand Up @@ -16,6 +16,7 @@ SET SESSION wsrep_on=ON;
connection node_1;
UPDATE t1 SET f2 = 'd' WHERE f1 > 3;
connection node_2;
Killing server ...
connection node_1;
UPDATE t1 SET f2 = 'e' WHERE f1 > 4;
connection node_2;
Expand Down
14 changes: 1 addition & 13 deletions mysql-test/suite/galera/t/galera_ist_restart_joiner.test
Expand Up @@ -63,19 +63,7 @@ UPDATE t1 SET f2 = 'd' WHERE f1 > 3;

# Kill node #2 while IST is in progress
--connection node_2

# Kill the connected server
--disable_reconnect

--perl
my $pid_filename = $ENV{'KILL_NODE_PIDFILE'};
my $mysqld_pid = `cat $pid_filename`;
chomp($mysqld_pid);
system("kill -9 $mysqld_pid");
exit(0);
EOF

--source include/wait_until_disconnected.inc
--source include/kill_galera.inc

--connection node_1
--source include/wait_until_connected_again.inc
Expand Down

0 comments on commit cade21b

Please sign in to comment.