Skip to content

[7.1.1 Cherry-pick] Preserve in-flight opens when clearing connection pools - #4740

Merged
cheenamalhotra merged 1 commit into
release/7.1from
dev/automation/pr-4718-to-7.1.1
Sep 23, 2026
Merged

cheenamalhotra merged 1 commit into
release/7.1from
dev/automation/pr-4718-to-7.1.1

Conversation

@github-actions

Copy link
Copy Markdown

Cherry-pick of #4718 (3160bb2) into release/7.1.

* Fix OpenAsync retry after pool clear

Route pending async opens on a cleared wait-handle pool back through the connection factory so they can complete from the replacement pool instead of surfacing a misleading pool timeout.

Add a regression test that parks an async pending open, clears the pool group, and verifies completion from a replacement pool.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Preserve in-flight opens when clearing wait-handle pools

Remove shutdown interruption and retry routing. Let admitted requests finish on the retired pool and dispose their connections on return. Preserve error expiry for remaining waiters.

Cover sync and async clearing, cancellation, timeouts, and error expiry. Add a SQL Server regression workload for #4714.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Make pool-clear regression coverage deterministic

Remove the concurrent stress workload and elapsed-time assertions. Gate physical creation and assert exact request ordering and creation counts around pool shutdown.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Remove pool-clearing documentation changes

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Leave retired pool clearing to the factory

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Clarify gated pool shutdown test scenario

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Separate pool-clear scenario from test plumbing

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Organize pool regression tests as arrange act assert

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Explain pool regression test interleavings inline

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Trim blocking-period test commentary

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Explain regression conditions and assertion evidence

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Clarify shutdown test walkthrough

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Match pool-clear comments to shutdown walkthrough

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions
github-actions Bot requested a review from a team as a code owner September 23, 2026 18:16
@github-actions github-actions Bot added this to the 7.1.1 milestone Sep 23, 2026
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Sep 23, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mdaigle
mdaigle enabled auto-merge (squash) September 23, 2026 18:19
@cheenamalhotra

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.12%. Comparing base (3fded36) to head (641d3ed).
⚠️ Report is 3 commits behind head on release/7.1.

Additional details and impacted files
@@               Coverage Diff               @@
##           release/7.1    #4740      +/-   ##
===============================================
- Coverage        66.39%   64.12%   -2.27%     
===============================================
  Files              291      285       -6     
  Lines            45110    68055   +22945     
===============================================
+ Hits             29949    43639   +13690     
- Misses           15161    24416    +9255     
Flag Coverage Δ
CI-SqlClient ?
PR-SqlClient-Project 64.12% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cheenamalhotra
cheenamalhotra merged commit cfc4fd3 into release/7.1 Sep 23, 2026
210 checks passed
@cheenamalhotra
cheenamalhotra deleted the dev/automation/pr-4718-to-7.1.1 branch September 23, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants