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

SQL Connection hang issue with .Net 5 and Microsoft.Extensions.Caching.SqlServer 5.0.1 #40207

Closed
1 task done
msmaverick2018 opened this issue Feb 14, 2022 · 2 comments · Fixed by #40214
Closed
1 task done
Assignees
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares feature-caching Includes: StackExchangeRedis and SqlServer distributed caches
Milestone

Comments

@msmaverick2018
Copy link

msmaverick2018 commented Feb 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I am using Microsoft.Extensions.Caching.SqlServer 5.0.1 in an asp net core application running in docker container using base image "aspnet:5.0-buster-slim". The application started hanging after deploying in one of our environments with CPU utilization shooting high, ultimately getting throttled by the limits. It took a long while to understand what was going on but finally we realized it was an issue with TLS 1.2, the sql server in the environment was not patched to handle it.
The issue is described here and the fix was done here and has been fixed in version 2.0 of Microsoft.Data.SqlClient as mentioned in release notes. It will be great if sql client reference is updated atleast to version 2.0 so that we do not run into this issue. Right now it is using version 1.0.

Expected Behavior

  • CPU Utilization should not shoot up in case of TLS errors
  • Should respect default connection timeout for SQL Connection or any overriding value.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@javiercn javiercn added area-runtime feature-caching Includes: StackExchangeRedis and SqlServer distributed caches labels Feb 14, 2022
@adityamandaleeka
Copy link
Member

adityamandaleeka commented Feb 14, 2022

We should update this in 7. https://github.com/dotnet/aspnetcore/blob/main/eng/Versions.props#L279

As a workaround, it might be possible to update the dependency directly in your app.

@adityamandaleeka adityamandaleeka added this to the .NET 7 Planning milestone Feb 14, 2022
@ghost
Copy link

ghost commented Feb 14, 2022

Thanks for contacting us.

We're moving this issue to the .NET 7 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 2022
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares feature-caching Includes: StackExchangeRedis and SqlServer distributed caches
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants