Skip to content

Comments

Feature | Fix enhanced routing ack handling#3972

Closed
mdaigle wants to merge 1 commit intodev/mdaigle/enhanced-routing-2from
dev/mdaigle/enhanced-routing-3
Closed

Feature | Fix enhanced routing ack handling#3972
mdaigle wants to merge 1 commit intodev/mdaigle/enhanced-routing-2from
dev/mdaigle/enhanced-routing-3

Conversation

@mdaigle
Copy link
Contributor

@mdaigle mdaigle commented Feb 20, 2026

Ports #3922 to main

Copilot AI review requested due to automatic review settings February 20, 2026 18:39
@mdaigle mdaigle marked this pull request as ready for review February 20, 2026 18:42
@mdaigle mdaigle requested a review from a team as a code owner February 20, 2026 18:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request ports enhanced routing acknowledgment handling fixes from PR #3922 to the main branch. The changes ensure that enhanced routing information (which includes a database name) is only used when the server explicitly acknowledges support for the feature via a feature extension acknowledgment token.

Changes:

  • Refactored enhanced routing unit tests to reduce duplication and improve maintainability using a helper class
  • Added validation logic to ignore enhanced routing info when the server doesn't acknowledge the feature
  • Modified OnFeatureExtAck to process enhanced routing acknowledgments even when routing info is present

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ConnectionEnhancedRoutingTests.cs Refactored tests to use TestRoutingServers helper class; consolidated three separate tests into two parameterized tests covering both sync/async paths and various server behaviors
SqlConnectionInternal.cs Added enhanced routing validation checks in LoginNoFailover and LoginWithFailover; updated OnFeatureExtAck to allow processing of enhanced routing acknowledgments alongside DNS caching

@mdaigle mdaigle linked an issue Feb 20, 2026 that may be closed by this pull request
@mdaigle mdaigle changed the title Fix enhanced routing ack handling. Feature | Fix enhanced routing ack handling. Feb 20, 2026
@mdaigle mdaigle changed the title Feature | Fix enhanced routing ack handling. Feature | Fix enhanced routing ack handling Feb 20, 2026
@mdaigle mdaigle closed this Feb 20, 2026
@mdaigle mdaigle reopened this Feb 20, 2026
@mdaigle mdaigle closed this Feb 20, 2026
@mdaigle mdaigle deleted the dev/mdaigle/enhanced-routing-3 branch February 20, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant