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

RelationalConnection.Close calls async function #26790

Closed
cincuranet opened this issue Nov 22, 2021 · 2 comments · Fixed by #26942 or #26943
Closed

RelationalConnection.Close calls async function #26790

cincuranet opened this issue Nov 22, 2021 · 2 comments · Fixed by #26942 or #26943
Assignees
Labels
area-global closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported Servicing-approved type-bug
Milestone

Comments

@cincuranet
Copy link
Contributor

The RelationalConnection.Close method calls CloseDbConnectionAsync in its codepath.

This obviously causes race between the closing code and what follows. Causing a nice havoc in FirebirdClient. :)

@roji
Copy link
Member

roji commented Nov 22, 2021

🤦

Thank @cincuranet - this was my fault, clearly a copy-paste error during the logging optimization work. Sorry for the trouble.

I've submitted #26793 for the 6.0 branch, with the proper description template for inclusion in a 6.0.x patch.

@cincuranet
Copy link
Contributor Author

cincuranet commented Nov 22, 2021

No problem. I'm now just happy to find it. :) It took quite some time to spot the problem.

Should I close #26791? I see you closed it as I typed this.

@roji roji linked a pull request Nov 23, 2021 that will close this issue
roji added a commit to roji/efcore that referenced this issue Dec 8, 2021
Also add missing ConfigureAwait(false) and StringComparison.Ordinal,
because of a configuration mismatch between FxCop and the built-in
diagnostics analyzers.

Fixes dotnet#26790
roji added a commit to roji/efcore that referenced this issue Dec 8, 2021
Also add missing ConfigureAwait(false) and StringComparison.Ordinal,
because of a configuration mismatch between FxCop and the built-in
diagnostics analyzers.

Fixes dotnet#26790
roji added a commit to roji/efcore that referenced this issue Dec 9, 2021
Also add missing ConfigureAwait(false) and StringComparison.Ordinal,
because of a configuration mismatch between FxCop and the built-in
diagnostics analyzers.

Fixes dotnet#26790
@ajcvickers ajcvickers added this to the 6.0.x milestone Dec 9, 2021
@ajcvickers ajcvickers modified the milestones: 6.0.x, 6.0.2 Dec 14, 2021
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Dec 14, 2021
roji added a commit to roji/efcore that referenced this issue Dec 16, 2021
Also add missing ConfigureAwait(false) and StringComparison.Ordinal,
because of a configuration mismatch between FxCop and the built-in
diagnostics analyzers.

Fixes dotnet#26790
roji added a commit to roji/efcore that referenced this issue Dec 16, 2021
Also add missing ConfigureAwait(false) and StringComparison.Ordinal,
because of a configuration mismatch between FxCop and the built-in
diagnostics analyzers.

Fixes dotnet#26790
roji added a commit that referenced this issue Dec 16, 2021
Also add missing ConfigureAwait(false) and StringComparison.Ordinal,
because of a configuration mismatch between FxCop and the built-in
diagnostics analyzers.

Fixes #26790
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment