Bug #24553 STOP INSTANCE: no way to tell if an instance was stopped successfully or not
Submitted: 23 Nov 2006 19:21 Modified: 6 Dec 2007 15:28
Reporter: Alexander Nozdrin Email Updates:
Status: Won't fix Impact on me:
Category:Instance Manager Severity:S4 (Feature request)
Version:5.0 BK OS:Any
Assigned to: CPU Architecture:Any

[23 Nov 2006 19:21] Alexander Nozdrin
STOP INSTANCE is supposed to be synchronous, i.e. it should wait for
an instance to stop and return after the instance stopped. It can also
return if the instance didn't stop within shutdown_interval (which can
be specified in the configuration).

However, for the user there is no way to tell whether an instance
has been stopped successfully, or STOP INSTANCE timed out.

It's proposed to return the status, like we START INSTANCE is doing it:
  - "Instance stopped" -- when STOP INSTANCE completed successfully;
  - "Instance killed (or timed out)" -- when STOP INSTANCE timed out.

How to repeat:
1. START INSTANCE mysqld2; # start nonguarded instance
2. Restart IM;
3. STOP INSTANCE mysqld2; -- it will be timed out.
[23 Nov 2006 19:35] Alexander Nozdrin
See also BUG#24554.