# restart: --log-error=MYSQLTEST_VARDIR/log/test_services.err call mtr.add_suppression("This is a warning from test plugin"); call mtr.add_suppression("This is an error from test plugin"); SET @orig_log_error_verbosity= @@global.log_error_verbosity; SET @@global.log_error_verbosity= 3; ------ Run plugin ------------------------------------------------ INSTALL PLUGIN test_services SONAME 'TESTSERVICES'; ------ Show variables of plugin to control test execution -------- SHOW VARIABLES LIKE 'test_service%'; Variable_name Value test_services_non_default_variable 0 test_services_with_log_message 1 ------ Show status of plugin ------------------------------------- SHOW STATUS LIKE 'test_services_status'; Variable_name Value test_services_status 1 test status: 1 # # Bug #GR VARS ARE ABLE TO SET TO 'DEFAULT' INSTEAD OF ERROR ER3093 # WHEN GR IS RUNNING # # Should not work SET @@global.test_services_non_default_variable= DEFAULT; ERROR 42000: Variable 'test_services_non_default_variable' can't be set to the value of 'DEFAULT' ------ Stop plugin ----------------------------------------------- UNINSTALL PLUGIN test_services; SET @@global.log_error_verbosity= @orig_log_error_verbosity; ------ Service: LogPluginErr ---------------------------- CREATE TABLE t1 (c1 varchar(30), c2 TEXT, c3 TEXT, c4 TEXT); LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/log/test_services.err' INTO TABLE t1 FIELDS TERMINATED BY ' ['; SELECT replace(concat('[',c2,' [',c3,' [',c4),'\r','') AS msg FROM t1 WHERE c4 LIKE '%test_services %'; msg [Note] [MY-011071] [Server] Plugin test_services reported: 'Test_services with_log_message_val: 1' [Note] [MY-011071] [Server] Plugin test_services reported: 'This is the test plugin for services testing info report output' [Warning] [MY-011071] [Server] Plugin test_services reported: 'This is a warning from test plugin for services testing warning report output' [ERROR] [MY-011071] [Server] Plugin test_services reported: 'This is an error from test plugin for services testing error report output' DROP TABLE IF EXISTS t1;