[MDEV-9366] do_shutdown_server fails to detect server shutdown on Windows Created: 2016-01-05  Updated: 2016-06-08  Resolved: 2016-01-07

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.0, 10.1
Fix Version/s: 10.0.24, 10.1.11

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None

Sprint: 10.2.0-3

 Description   

Many MTR tests restart the server in the middle either using shutdown_server [$timeout] directly, or using include files such as include/restart_mysqld.inc, which in turn call shutdown_server.

shutdown_server command is handled by do_shutdown_server, which is supposed to keep checking whether the server is gone away, and proceed as soon as it's disappeared. Only on Windows it does not work – even though the server shuts down properly, mysqltest keeps waiting until the timeout is exceeded. As a result, tests which restart the server in the middle take much longer than they are supposed to.

One of examples is innodb.innodb-autoinc. It takes 5 times longer on Windows because it waits three times, each time for 60 seconds.



 Comments   
Comment by Vladislav Vaintroub [ 2016-01-07 ]

The fix seems to reduce the win32-debug2 built/test to about 3 hours on an idle machine, which I believe is at least 1 hour less than before.

https://buildbot.askmonty.org/buildbot/builders/win32-debug2/builds/8867

Generated at Thu Feb 08 07:34:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.