Skip to content

Open fresh connections after the upgrade test restarts its server - #4397

Merged
erikdarlingdata merged 1 commit into
devfrom
test/upgrade-inplace-stale-connection
Sep 26, 2026
Merged

erikdarlingdata merged 1 commit into
devfrom
test/upgrade-inplace-stale-connection

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

Test-only.

UpgradeInPlace_OldMajorStoreWithRealData_UpgradesAndKeepsEverything_Gated failed in the nightly run with "An existing connection was forcibly closed by the remote host". The failure was on the first statement after the test restarted its server.

The PostgreSQL log shows no crash. The test's oldConnection string came from DarlingManagedPostgres.BuildConnectionString, which is pooled, and BuildOldStoreAsync had already opened pooled connections to the same server. After pg_ctl stop and start, Npgsql handed back a physical connection from the previous server lifetime.

The three oldConnection sites in this test file (this test and its two same-shape siblings) now set Pooling = false, as the file's other connection strings already do.

No CHANGELOG entry: test-only.

@erikdarlingdata
erikdarlingdata marked this pull request as ready for review September 26, 2026 07:23
@erikdarlingdata
erikdarlingdata merged commit 6e501af into dev Sep 26, 2026
15 of 16 checks passed
@erikdarlingdata
erikdarlingdata deleted the test/upgrade-inplace-stale-connection branch September 26, 2026 07:23
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