| 1 |
INSTALL PLUGIN test_services_host_application_signal SONAME "TEST_SERVICES_HOST_APPLICATION_SIGNAL_PLUGIN"; |
| 2 |
# Test for bad service id |
| 3 |
SELECT test_shutdown_signal_udf(2); |
| 4 |
test_shutdown_signal_udf(2) |
| 5 |
0 |
| 6 |
# shutdown the server from mtr. |
| 7 |
# restart the server. |
| 8 |
# start the sql client and test the shutdown UDF with 0 |
| 9 |
test_shutdown_signal_udf(0) |
| 10 |
0 |
| 11 |
# Search for the message in the log |
| 12 |
Pattern "Received SHUTDOWN from user .internal signal component service" found |
| 13 |
# restart the server |
| 14 |
# start the sql client and test the shutdown UDF with 1 |
| 15 |
test_shutdown_signal_udf(1) |
| 16 |
0 |
| 17 |
# Search for the message in the log |
| 18 |
Pattern "Received SHUTDOWN from user .internal signal component service" found |
| 19 |
# restart server. |
| 20 |
# Stop DB server which was created by MTR default |
| 21 |
# Trying the shutdown at init option |
| 22 |
# Search for the message in the log |
| 23 |
Pattern "Received SHUTDOWN from user .internal signal component service" found |
| 24 |
# restart server. |
| 25 |
UNINSTALL PLUGIN test_services_host_application_signal; |