Bun

Bun issue (Nov 29): Bun Bun.SQL Closes Postgres Connections Without Sending Terminate

medium

Is it fixed? Not yet.

Ongoing since Nov 29, 18:56 UTC. First reported Nov 29, 18:56 UTC.

What happened

Bun.SQL for PostgreSQL closes connections without sending a Terminate message, which increments the pg_stat_database.sessions_abandoned metric. This issue has been observed on Bun versions 1.4.4 and 1.4.6-canary.1+0966e99d8.

What caused it?

Under active investigation. No report has identified a root cause yet.

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    Bun.SQL (Postgres) closes connections without sending Terminate, incrementing pg_stat_database.sessions_abandoned

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    Bun.SQL (Postgres) closes connections without sending Terminate, incrementing pg_stat_database.sessions_abandoned(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.6-canary.1+0966e99d8 (also observed on 1.4.4) What platform is your computer? Linux arm64 (Docker container) What steps can reproduce the bug? Open a PostgreSQL connection pool with new Bun.SQL(url). Run SELECT 1. Close cleanly via await sql.close() (also reproduces on idle timeout and reserved.close()). Query SELECT sessions_abandoned FROM pg_stat_database WHERE datname = current_database() after stats flush. import { SQL } from "bun"; const sql = new…

    by omardoma 0upvotes 1comments

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Nov 29, 18:56 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.

What is affected by the Bun issue?

Bun (versions: 1.4.4, 1.4.6-canary.1+0966e99d8).

When did the Bun issue start and end?

It started Nov 29, 18:56 UTC and is still ongoing (8 h 48 min so far). This page updates as it develops.

How do I get alerts for Bun?

Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.