Skip to content

Commit

Permalink
MDEV-21905: Galera test galera_var_notify_cmd causes hang
Browse files Browse the repository at this point in the history
Fixed wsrep_notify.sh script so it only reports status changes on
'joined', 'synced', 'donor'.
  • Loading branch information
mkaruza authored and Jan Lindström committed Jul 24, 2020
1 parent f843e21 commit 6b8b7b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
18 changes: 9 additions & 9 deletions mysql-test/std_data/wsrep_notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ configuration_change()

status_update()
{
echo "SET wsrep_on=0; BEGIN; UPDATE $STATUS_TABLE SET status='$STATUS'; COMMIT;"
echo "$BEGIN; UPDATE $STATUS_TABLE SET status='$STATUS'; $END;"
}

COM=status_update # not a configuration change by default
Expand Down Expand Up @@ -89,11 +89,11 @@ do
shift
done

# Undefined means node is shutting down
if [ "$STATUS" != "Undefined" ]
then
$COM | mysql -B -u$USER -h$HOST -P$PORT
fi

exit 0
#
case $STATUS in
"joined" | "donor" | "synced")
$COM | mysql -B -u$USER -h$HOST -P$PORT
;;
*)
exit 0
;;
esac
1 change: 0 additions & 1 deletion mysql-test/suite/galera/disabled.def
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ galera_sst_mariabackup_encrypt_with_key : MDEV-21484 galera_sst_mariabackup_encr
galera_toi_ddl_nonconflicting : MDEV-21518 galera.galera_toi_ddl_nonconflicting
galera_toi_truncate : MDEV-22996 Hang on galera_toi_truncate test case
galera_var_node_address : MDEV-20485 Galera test failure
galera_var_notify_cmd : MDEV-21905 Galera test galera_var_notify_cmd causes hang
galera_var_reject_queries : assertion in inline_mysql_socket_send
galera_var_retry_autocommit: MDEV-18181 Galera test failure on galera.galera_var_retry_autocommit
galera_wan : MDEV-17259 Test failure on galera.galera_wan
Expand Down
2 changes: 2 additions & 0 deletions mysql-test/suite/galera/r/galera_var_notify_cmd.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
connection node_2;
connection node_1;
connection node_1;
SELECT COUNT(DISTINCT uuid) AS EXPECT_2 FROM mtr_wsrep_notify.membership;
EXPECT_2
Expand Down

0 comments on commit 6b8b7b1

Please sign in to comment.