-
Notifications
You must be signed in to change notification settings - Fork 292
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
Bug | Fix Connection Resiliency for Linux/MacOS clients #359
Comments
This is the error I get when I let it timeout on MacOS (Step 4):
This is the error I get when I timeout on Windows (Step 4):
|
Hi @aaomidi Connection Resiliency was never implemented for MacOS/Linux with Managed SNI, so I guess this is expected. Ref comment: #306 (comment) I'm going to convert it to Feature Request 😄 |
In case the additional info is useful, I ran into the same error today with a slightly different stack trace:
Using the (linux) I got the error after this other error that I didn't get a stack trace for:
but once the socket error happened the sql connection pool got into an unusable state, all attempts to get a connection failing with: |
There is no feature gap specific reason that connection resiliency shouldn't work on non-Windows platform. This is definitely a bug where we are trying to reuse a disposed socket. There was no feature parity gap with Connection Resiliency on the SqlClient driver on nix platform. I am only referring to the original stack posted here. |
Got similar issue on .NET Core 3.0 / Linux with Microsoft.Data.SqlClient 1.1.1:
For some reason, is does not fail immediately on .OpenAsync call. It hangs for 60+ seconds, and then fails with SqlException / ObjectDisposedException, so just retrying on error does not resolve the issue completely. |
Hi, I met a similar issue, not sure if it's the same issue. If it is duplicated, let me know and I will remove this, thanks. The log is like below, only a little part of queries has this issue. The application runs in Linux docker. Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.\n |
Hi @frankyuan Please provide a repro for your scenario to analyze. Please create a new ticket with it. |
Sure, I will create a new ticket, thanks. |
Closing issue as stale as Connection resiliency works as expected in recent driver versions. |
.NET Core 2.2
Repro: https://github.com/aaomidi/smo-test/blob/master/Program.cs
Repro of the issue:
I have confirmed that this issue does not exist in Windows.
I have not confirmed if this issue repros in Linux.
The text was updated successfully, but these errors were encountered: