| 1 |
# restart: --log-error=MYSQLTEST_VARDIR/log/test_services_threaded.err |
| 2 |
call mtr.add_suppression("This is a warning from test plugin"); |
| 3 |
call mtr.add_suppression("This is an error from test plugin"); |
| 4 |
SET @orig_log_error_verbosity= @@global.log_error_verbosity; |
| 5 |
SET @@global.log_error_verbosity= 3; |
| 6 |
------ Run plugin ------------------------------------------------ |
| 7 |
INSTALL PLUGIN test_services_threaded SONAME 'TESTSERVICESTHREADED'; |
| 8 |
------ Wait until test execution in plugin is ready -------------- |
| 9 |
let wait_timeout= 60 |
| 10 |
let wait_condition=SELECT variable_value= 1 FROM performance_schema.global_status |
| 11 |
WHERE variable_name LIKE 'test_services_status'; |
| 12 |
source include/wait_condition.inc; |
| 13 |
------ Stop plugin ----------------------------------------------- |
| 14 |
UNINSTALL PLUGIN test_services_threaded; |
| 15 |
SET @@global.log_error_verbosity= @orig_log_error_verbosity; |
| 16 |
------ Service: LogPluginErr ---------------------------- |
| 17 |
CREATE TABLE t1 (c1 varchar(30), c2 TEXT, c3 TEXT, c4 TEXT); |
| 18 |
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/log/test_services_threaded.err' INTO TABLE t1 |
| 19 |
FIELDS TERMINATED BY ' ['; |
| 20 |
SELECT replace(concat('[',c2,' [',c3,' [',c4),'\r','') AS msg FROM t1 WHERE c4 LIKE '%test_services_threaded%'; |
| 21 |
msg |
| 22 |
[Note] [MY-011071] [Server] Plugin test_services_threaded reported: 'Test_services_threaded with_log_message_val: 1' |
| 23 |
[Note] [MY-011071] [Server] Plugin test_services_threaded reported: 'This is the test plugin for services' |
| 24 |
[Warning] [MY-011071] [Server] Plugin test_services_threaded reported: 'This is a warning from test plugin for services' |
| 25 |
[ERROR] [MY-011071] [Server] Plugin test_services_threaded reported: 'This is an error from test plugin for services' |
| 26 |
[Note] [MY-010733] [Server] Shutting down plugin 'test_services_threaded' |
| 27 |
DROP TABLE IF EXISTS t1; |
| 28 |
# restart: |