mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
629c60973d
Problem:- While running tests from wsrep suite , we include file have_wsrep.inc or have_wsrep_enabled.inc , these file test wsrep plugin is ACTIVE or 'wsrep_on' is ON. These select does not ensure that whether 'wsrep_ready' is ON , So that we can process SQL queries. So sometimes we will get error like this mysqltest: At line 81: query 'call mtr.check_testcase()' failed: 1047: WSREP has not yet prepared node for application use not ok Solution:- In file have_wsrep.inc and have_wsrep_enabled.inc we will include wait_until_ready.inc , which will wait untill 'wsrep_on' is on
12 lines
394 B
PHP
12 lines
394 B
PHP
# To be used in a test which requires wsrep plugin to be ACTIVE and enabled
|
|
# (i.e. wsrep_on=ON). It includes have_wsrep.inc.
|
|
|
|
--source include/have_wsrep.inc
|
|
--source include/have_innodb.inc
|
|
|
|
if (`SELECT COUNT(*)=0 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME = 'wsrep_on' AND VARIABLE_VALUE='ON'`)
|
|
{
|
|
--skip Test requires wsrep_on=ON
|
|
}
|
|
--source include/wait_until_ready.inc
|
|
|