Skip to content

fix: avoid stale serve db connections#33

Merged
machado144 merged 1 commit into
mainfrom
fix-serve-stale-pgx-type-cache
May 27, 2026
Merged

fix: avoid stale serve db connections#33
machado144 merged 1 commit into
mainfrom
fix-serve-stale-pgx-type-cache

Conversation

@machado144

Copy link
Copy Markdown
Contributor

Summary

  • use a fresh short-lived DB connection for Serve seed and gap-fill jobs
  • avoid stale pgx/Cockroach type metadata after schema resets/recreates, which surfaced as cache lookup failed for type ... during enum inserts
  • add a regression test that simulates a stale session connection failing while the fresh run connection succeeds

Verification

  • manual Serve retest on http://127.0.0.1:8081
  • GOCACHE=/tmp/seedstorm-gocache /home/youngestaxe/go/bin/go1.25.10 test ./...
  • make test-integration

@github-actions

Copy link
Copy Markdown

StructLint — All checks passed

162 rules validated against .structlint.yaml. No violations found.

View full run · Powered by StructLint

@machado144 machado144 merged commit 01917b3 into main May 27, 2026
9 checks passed
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