-
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
MySql Connector throw an exception with a big concurrency volume #196
Comments
I'm using mysql on azure(5.7) which provided by Microsoft China Cloud Innovation Center officially. Disabled |
Hi @bgrainger, @edwinsongmsft is the Principal Program Manager of Microsoft MySQL on Azure team. If you want to know what is the differences between normal MySQL and MySQL on Azure, you could communicate with him. |
Hi @bgrainger, as we did not support the auto reconnection, could u catch the exception and reconnect the database again? BR, Edwin |
From the exception message, it seems like |
it occurred in a big concurrency volume. There was no particular code. |
Possible duplicate. This one uses MariaDB. |
"There is already an open DataReader associated with this Connection" (from the linked issue) could indicate incorrect use of the library. If that is the root cause, then perhaps it's possible that it could also cause the "An asynchronous socket operation is already in progress" exception? If so, a good troubleshooting step might be to add explicit checks in public APIs of MySqlConnector to detect this situation and throw a more helpful exception earlier. OTOH, there could be a bug in this library that's causing both exceptions. If we add that code to throw the new exception and it's not getting thrown, that would discount the "incorrect use" hypothesis. |
Could this be coming from improperly disposed readers? Do we force the reader to dispose when a connection is disposed? We might need to check the logic there. Since read buffering was added, we may need to add code to clear the read buffer as well. |
Good call: Disposing any active reader in |
Adding Reader Disposal to |
Dispose reader when disposing connection. Fixes #196
This tests changes made for mysql-net#196.
Should be fixed in 0.14.1. |
@bgrainger There was another exception occurred with a big concurrency volume |
This last exception is a duplicate of #162. |
@bgrainger When will you fix #162? Our customer case was blocked by this. |
@kagamine Is it possible that your customer uses cancellation in any way, i.e., calls |
The text was updated successfully, but these errors were encountered: