-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[mysql] MySQL with ProxySQL in front reports errors and stalls #422
Comments
What's your MySQL version? Can you try master and see if the changes there fix your problem? |
I pulled up master, and the stalling issue is not present, but the error returned by ProxySQL continues to show up on the connection being established:
I went ahead and pulled down the sqlx source and compiled it with a small change, just separating the initial |
Oh, and for the version, ProxySQL is reporting: |
Splits the MySQL connection setup statements into discrete executions to prevent issues with proxies, such as ProxySQL, which may need to balance and share connections between different backends. Fixes launchbadge#422 Signed-off-by: Marcus Griep <marcus@griep.us>
Splits the MySQL connection setup statements into discrete executions to prevent issues with proxies, such as ProxySQL, which may need to balance and share connections between different backends. Users can opt into this functionality by enabling the `proxysql-compat` feature, which issues the SET statements in discrete commands. Fixes launchbadge#422 Signed-off-by: Marcus Griep <marcus@griep.us>
Joins the MySQL connection setup statements into a single statement to prevent issues with ProxySQL, which requires special handling of connections that might be shared between multiple backends. Fixes launchbadge#422 Signed-off-by: Marcus Griep <marcus@griep.us>
Joins the MySQL connection setup statements into a single statement to prevent issues with ProxySQL, which requires special handling of connections that might be shared between multiple backends. Fixes #422 Signed-off-by: Marcus Griep <marcus@griep.us>
We have a ProxySQL proxy fronting our MySQL database. When connecting to the database and beginning to execute queries, the first query may execute successfully, but subsequent queries stall out and do not proceed.
These are the logs from ProxySQL:
When I try to execute the next query, the execution seems to stall out in the middle of the query and it never resolves to either an error or a success. I'm doing this inside of a Warp server, and because the future never resolves, it hangs the HTTP connection. Cancelling the HTTP request drops the future, and the next query executes correctly, but on a new MySQL connection. If I gracefully shut down the Warp server instead, it will hang waiting for the request to finish until the timeout expires.
I could add some timeouts surrounding the queries, but that wouldn't solve the underlying issue of every other query failing to resolve.
Some times, when starting up, I will receive an error back from the ProxySQL instance:
This may just require issuing each
SET
command as a separateexecute
rather than all in one, as is currently done.Issue #263 may be related.
The text was updated successfully, but these errors were encountered: