Broken release / symbolication database load (US region latency spike, October 2026)

Severity: Major
Category: Scalability
Service: Sentry

This summary is created by Generative AI and may differ from the actual content.

Overview

A few releases with broken names had accumulated tens of millions of rows in Sentry's symbolication database. These releases were created when environment variables in customer build configurations were referenced but never expanded, causing the literal variable name (such as VERCEL_GIT_COMMIT_SHA) to be used as the release name instead of the actual commit SHA. The worst affected release had 13,595 bundles, 3,226 files per bundle, and 44 million URL index rows with generated file names. An unbounded URL lookup query attempted to scan all these rows, with a single lookup taking 7.4 minutes uncached and 53 seconds cached, exceeding the 10-second query timeout (normally 30 seconds, but lowered during the incident) and triggering retries that multiplied the load. More than 200 organizations were affected by this issue. The problem was resolved through multiple fixes: capping URL lookups at 1 million rows, splitting debug ID lookups into three single-table queries, keeping dates on the bundle row only instead of rewriting dates on all related rows, stopping indexing of generated file names, and disabling Postgres JIT compilation. These changes reduced database CPU from 76% to 19%, symbolicator timeouts by 98%, and active database sessions from 104 to 24 on the busiest host.

Impact

Symbolicator lookups that timed out per hour fell from 3,250 to 80 (−98%). Weekday-morning load on the busiest database host fell from 104 active sessions to 24 (−77%) while serving 10% more queries. Database CPU usage dropped from 76% to 19% on the busiest host. Before fixes, uploads hit timeout errors about 32,000 times in 18 days. The issue affected more than 200 organizations.

Trigger

An environment variable was referenced but never expanded in customer build configurations, causing the literal variable name (such as VERCEL_GIT_COMMIT_SHA) to be used as the release name instead of the actual commit SHA. This caused every build from affected customers to land in the same release with generated file names that could never match URL lookups. The worst affected release accumulated 13,595 bundles with 44 million URL index rows.

Detection

The issue was discovered through investigation of the symbolication database which had been a problem for a while with growing load and storage. In early October, it caused an incident where symbolication latency spiked for customers in the US region. The investigation identified suspicious releases causing an outsized share of load, with the worst one named literally VERCEL_GIT_COMMIT_SHA, which had already been found and blocked from lookups after appearing in query-killer logs.

Resolution

Five key fixes were implemented: (1) Capped a single URL lookup at scanning 1,000,000 URL index rows, causing lookups on huge releases to stop early instead of running until killed and retried (October 14). (2) Split the debug ID lookup from a heavy join across multiple tables into three single-table queries starting from the debug ID to prevent bad query plans (October 8). (3) Changed to keep dates on the bundle row only instead of rewriting dates on every debug ID and URL index row during re-uploads (October 9). (4) Stopped indexing generated file names that could never match URL lookups, reducing URL index inserts by about 35% (October 8–9). (5) Disabled Postgres JIT compilation which was taking longer to compile than it saved for legacy release file lookups (October 7). Additionally, the Sentry JavaScript SDK was updated starting in version 11.9.0 to ignore commit variables whose value is their own name as a preventive measure.

Root Cause

The root cause was a combination of two factors: (1) Customer build configurations that referenced environment variables but failed to expand them, causing literal variable names to be used as release names, and (2) an unbounded URL lookup query that attempted to scan all rows in the URL index without limits. The system was designed around releases with a reasonable number of builds, but a few releases with broken names accumulated huge amounts of data. The unbounded query tried to scan all of it, and when it timed out, Symbolicator would retry it, multiplying the load. Additionally, files with generated names were being indexed even though they could never match URL lookups, further bloating the index.