sandbox may fail on slow host

Bug #239632 reported by Giuseppe Maxia
2
Affects Status Importance Assigned to Milestone
MySQL Sandbox
Fix Released
Medium
Giuseppe Maxia
Mysql-sandbox-1.99-alpha
Fix Released
Medium
Giuseppe Maxia

Bug Description

Currently, the Sandbox uses a "sleep" instruction to allow for the server to complete its startup.
On a slow machine, this sleep may not be enough, resulting in a failure to install a replicated server, or also in a failure to create grants.
The "sleep" must be replaced by a check-for-completion loop with a timeout.

Changed in mysql-sandbox:
assignee: nobody → giuseppe-maxia
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Giuseppe Maxia (giuseppe-maxia) wrote :

Replaced the fixed "sleep 3" with a loop.
The loop sleeps for 1 second and checks for completion.
After a given timeout (20 seconds for starting, 10 seconds for stopping) it gives up.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.