Skip to content

test(sql-mssql): reproduce connection reuse before cancellation completes - #9630

Closed
effect-bot wants to merge 29 commits into
v4/next-minorfrom
agent/effect-bot/08043828380e
Closed

effect-bot wants to merge 29 commits into
v4/next-minorfrom
agent/effect-bot/08043828380e

Conversation

@effect-bot

@effect-bot effect-bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add one real-MSSQL regression: interrupt a waiting query in a one-connection pool, then immediately query again.
  • Tests only: no runtime changes, error suppression, sleeps/retries, or timeout increases. No changeset is needed.
  • Target v4/next-minor; unrelated to cookie PR fix(http): send stored cookies only to the matching host #9614.

Investigation

Real Tedious 20.3.8 traces show a scoped PersistedQueue lock-refresh UPDATE canceled while its connection remains SentClientRequest. The next test's migration query borrows that same connection before the canceled request calls back and fails EINVALIDSTATE. The client interruption finalizer calls cancel() without awaiting completion; acquisition excludes ended/error-latched connections but not pending canceled requests.

Normal request callbacks observed LoggedIn, consistent with Tedious transitioning idle before callback; normal callback resumption is not implicated by these captures.

Validation

Do not merge this intentionally red, tests-only handoff before the separate implementation run addresses cancellation drain/reuse.

Closes EFF-2605
Closes EFF-2604

EFF-2604 was discovered as the existing parallel investigation during handoff. Consolidate implementation there and reuse this tests-only reproduction instead of creating duplicate regression coverage.

fubhy and others added 29 commits October 20, 2026 21:13
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Tim Smart <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Tim Smart <[email protected]>
Co-authored-by: Sebastian Lorenz <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Tim Smart <[email protected]>
Co-authored-by: Stéphane Le Dorze <[email protected]>
Co-authored-by: Tarekkharsa <[email protected]>
Co-authored-by: Jem Gold <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Effect Bot <[email protected]>
Co-authored-by: Tim Smart <[email protected]>
…ollapse options (#9276)

Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Effect Bot <[email protected]>
@changeset-bot

changeset-bot Bot commented Oct 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 99ab439

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 33 packages
Name Type
@effect/ai-anthropic Minor
effect Minor
@effect/platform-node-shared Minor
@effect/ai-cloudflare Minor
@effect/ai-openai Minor
@effect/ai-typesafe Minor
@effect/sql-sqlite-react-native Minor
@effect/openapi-generator Minor
@effect/platform-browser Minor
@effect/sql-pg Minor
@effect/platform-deno Minor
@effect/opentelemetry Minor
@effect/vitest Minor
@effect/ai-openai-compat Minor
@effect/ai-openrouter Minor
@effect/atom-react Minor
@effect/atom-solid Minor
@effect/atom-vue Minor
@effect/platform-bun Minor
@effect/platform-node Minor
@effect/sql-clickhouse Minor
@effect/sql-d1 Minor
@effect/sql-libsql Minor
@effect/sql-mssql Minor
@effect/sql-mysql2 Minor
@effect/sql-pglite Minor
@effect/sql-sqlite-bun Minor
@effect/sql-sqlite-do Minor
@effect/sql-sqlite-node Minor
@effect/sql-sqlite-wasm Minor
@effect/docgen Minor
@effect/doctest Minor
@effect/graphql-generator Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

10 participants