mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-29861 : Galera "notify" test cases hang
Problem was that if wsrep_notify_cmd was set it was called with a new status "joined" it tries to connect to the server to update some table, but the server isn't initialized yet, it's not listening for connections. So the server waits for the script to finish, script waits for mariadb client to connect, and the client cannot connect, because the server isn't listening. Fix is to call script only when Galera has already formed a view or when it is synched or donor. This fix also enables following test cases: * galera.MW-284 * galera.galera_binlog_checksum * galera_var_notify_ssl_ipv6 Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
This commit is contained in:
committed by
Julius Goryavsky
parent
d890aca6b5
commit
632a503ce7
@ -189,7 +189,11 @@ public:
|
||||
|
||||
void set(enum wsrep::server_state::state status)
|
||||
{
|
||||
wsrep_notify_status(status);
|
||||
if (status == wsrep::server_state::s_donor ||
|
||||
status == wsrep::server_state::s_synced)
|
||||
wsrep_notify_status(status, &view_);
|
||||
else
|
||||
wsrep_notify_status(status);
|
||||
|
||||
lock();
|
||||
status_= status;
|
||||
|
Reference in New Issue
Block a user