Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce race in legacy_local_example #6076

Merged
merged 2 commits into from
Apr 16, 2020

Conversation

morgo
Copy link
Contributor

@morgo morgo commented Apr 16, 2020

There is a race in the local example, where starting vtgate actually waits for the status port to be up, but it seems the MySQL port may come up just a fraction later.

I added a sleep in the local_example, which has actually improved the stability. This adds a sleep in the legacy example, which should similarly improve it.

I know sleeps is not a good solution, and long term it probably makes sense to bring up the status port when the MySQL port is healthy. But that's a solution I've not looked into yet.

Signed-off-by: Morgan Tocker [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants