-
Notifications
You must be signed in to change notification settings - Fork 335
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
Help identify root cause of "Packet received out-of-order" errors #1343
Comments
Would it be possible to run your application connecting directly to MySQL Server, bypassing ProxySQL, for a sufficiently long period of time that you would normally expect to see this error? There have been ProxySQL bugs reported before (e.g., #842 (comment)) so it could be useful to rule that out as a variable. If the problem happens when connecting MySqlConnector directly to MySQL Server, then it definitely increases the likelihood that the error could be in the client code. |
Thanks for the recommendation and sorry for the long delay in answering... It took us time to deploy Sentry to monitor the situation better and then try without ProxySQL. Disabling ProxySQL for almost a week now seems to indicate the we have no error, which would indicate that it is indeed the root cause of our issues... Do you think we could extend MySqlConnector to collect more information about the out-of-order errors? Is there any chance getting the exact last command that was run before the crash in that connection? Or getting any detail from the packets received out of order? Has anyone ever integrated MySqlConnector with Sentry? e.g. adding breadcrumbs to better understand what had happened before a crash? |
Enabling MySqlConnector logging (at Debug or Trace) level might produce some helpful information about what is happening on each physical connection before the failure. If Sentry can consume .NET There are also packages out there that can convert |
Sorry again for the very long delay in answering. I've logged into these options:
Thanks again for your help. |
Is your feature request related to a problem? Please describe.
We are infrequently getting "Packet received out-of-order" errors, all of which seem to be coming from the same code path, but we haven't been able to identify what is causing it. From #496 (comment), I understand that it could be due to multiple in-flight async requests, but we can't identify were the error is coming from.
Describe the solution you'd like
As suggested in the comment mentioned above, a meaningful error in case of multiple in-flight async requests, or at least detailed information about the two requests that ended up being simultaneous when the error is triggered.
Describe alternatives you've considered
Additional context
We are using:
Here is a trace of the error we are seeing:
The errors are then followed by "Can't replace active reader." errors, as I understand the exception is leaving the connection in a bad state.
The text was updated successfully, but these errors were encountered: