Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Add a mysqladmin shutdown timeout & fixes to fallback shutdown logic. #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephen-hand-RTR
Copy link

Added timeout to mysqladmin shutdown.

Set the process ID in MysqldProcess so it can execute the fallback shutdown methods (it was bypassing them previously because it didn't have this).

Added mechanism to wait to see if the process actually stops after attempting fallback shutdown methods rather than assuming success. Previously there would be cases where a 'kill' process would return 0, but the process either did not shutdown at all, or took some time to shut down after the process returns (which meant attempting to run a new server on the same port would fail). The new code waits (with a timeout) and checks to see the process disappear before reporting success to the caller.

…cess so it can execute fallback shutdown methods. Added mechanism to wait to see if the process actually stops after attempting fallback shutdown methods rather than assuming success.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant