| 1 |
INSTALL COMPONENT "file://component_test_host_application_signal"; |
| 2 |
# Test for bad service id |
| 3 |
SELECT test_shutdown_signal(2); |
| 4 |
test_shutdown_signal(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(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(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 |
UNINSTALL COMPONENT "file://component_test_host_application_signal"; |