Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

[release/3.0] Fix Connection Resiliency in SqlClient #42615

Conversation

cheenamalhotra
Copy link
Member

Port of: dotnet/runtime#62 and dotnet/SqlClient#310

Summary

Connection Resiliency is an important feature in System.Data.SqlClient which stopped working post PR
#34047 as a breaking change got introduced.

Customer Impact

Connections once idle cannot be restored and users start getting exceptions "The connection is closed".

Regression?

Yes. Regression was introduced in System.Data.SqlClient v4.7.0-preview.19073.11.

Testing

This feature was not being tested in CI hence the bug flowed over. We are working on adding tests in dotnet/sqlclient to test this feature and ensure it doesn't escape in future. Since all new changes will be made in dotnet/sqlclient repository, we'll be adding tests there in future.

Risk

Low: The fix is to unwrap Task.Factory.StartNew call which was modified from Task.Run, has been tested and verified.

cc: @danmosemsft @David-Engel

@cheenamalhotra cheenamalhotra added the Servicing-consider Issue for next servicing release review label Nov 15, 2019
@danmoseley
Copy link
Member

We are not going to service 3.0 much longer as it will be superseded by 3.1. For simplicity, I'm going to close this and we can discuss in the 3.1 PR #42614

@danmoseley danmoseley closed this Nov 21, 2019
@karelz karelz added this to the 3.0.1 milestone Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Data.SqlClient Servicing-consider Issue for next servicing release review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants