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

Reset cached async state on disposing a command #1128

Merged
merged 4 commits into from Jul 30, 2021

Conversation

DavoudEshtehari
Copy link
Member

The root cause of issue #971: The cached status of an async operation that is kept in the related connection didn't reset to be ready for the next operation.

  • Porting more handled exceptions from Net Fx.
  • Including more traces.

@Wraith2
Copy link
Contributor

Wraith2 commented Jun 18, 2021

Looks reasonable. Is it worth checking that the cached async state is correctly reset when the connection is returned to the pool?

@DavoudEshtehari DavoudEshtehari changed the title Reset cached async state on disposing a command WIP : Reset cached async state on disposing a command Jun 22, 2021
@DavoudEshtehari DavoudEshtehari changed the title WIP : Reset cached async state on disposing a command Reset cached async state on disposing a command Jul 10, 2021
@DavoudEshtehari DavoudEshtehari marked this pull request as ready for review July 10, 2021 01:34
@DavoudEshtehari DavoudEshtehari added the 🐛 Bug! Something isn't right ! label Jul 13, 2021
@cheenamalhotra cheenamalhotra added this to In progress in SqlClient v4.0 via automation Jul 21, 2021
@cheenamalhotra cheenamalhotra added this to the 4.0.0-preview1 milestone Jul 21, 2021
# Conflicts:
#	src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.cs
SqlClient v4.0 automation moved this from In progress to Reviewer approved Jul 28, 2021
@cheenamalhotra cheenamalhotra merged commit ba2dbfe into dotnet:main Jul 30, 2021
SqlClient v4.0 automation moved this from Reviewer approved to Done Jul 30, 2021
DavoudEshtehari pushed a commit to DavoudEshtehari/SqlClient that referenced this pull request Aug 30, 2021
DavoudEshtehari pushed a commit to DavoudEshtehari/SqlClient that referenced this pull request Aug 30, 2021
DavoudEshtehari pushed a commit to DavoudEshtehari/SqlClient that referenced this pull request Aug 30, 2021
DavoudEshtehari pushed a commit to DavoudEshtehari/SqlClient that referenced this pull request Aug 30, 2021
DavoudEshtehari added a commit that referenced this pull request Sep 3, 2021
Co-authored-by: Davoud Eshtehari <v-daesht@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug! Something isn't right !
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants