Incident Library

IL-0551 Atlassian · 2025-05-08database

Bitbucket Cloud's overloaded primary database failed over, and the website, API and Pipelines were slow for almost a day

On 8 May 2025 a high-scale backfill job run by an internal Atlassian service put excessive load on certain Bitbucket Cloud API endpoints. Those endpoints ran resource-intensive queries and operations against the primary database, the database became overloaded, and the website and API slowed down from 15:26 UTC. Monitoring caught the problem immediately, the backfill job was stopped, and the primary database failed over automatically, so Bitbucket services recovered within 15 minutes.

The failover did not end the incident. Services that depend on the database had built up a backlog of retries, and that extra load kept database performance down, with intermittent failures and latency on the website, the API and Bitbucket Pipelines. Engineers applied several measures to shed database load, and Bitbucket Cloud was fully operational at 11:19 UTC on 9 May. Atlassian's testing had not caught the problem because it came from this particular high-scale backfill job and the expensive queries it set off.

Severity
–
Scope
Bitbucket Cloud website, API and Bitbucket Pipelines: increased latency and intermittent failures from 15:26 UTC on 8 May to 11:19 UTC on 9 May 2025
Users affected
–
Region
–
Time to detect
–
Time to resolve
19h 53m

Symptoms

At 15:26 UTC on 8 May 2025, the Bitbucket Cloud website and API became slow because the primary database was overloaded. Atlassian's real-time monitoring detected the problem at once.

The primary database failed over automatically, and Bitbucket services recovered within 15 minutes. After the failover, a backlog of retries from downstream services kept loading the database, and customers saw intermittent errors and slow responses on the website, the API and Bitbucket Pipelines until 11:19 UTC on 9 May.

Symptom Database overloadHigh latencyHigh error rate

Root cause

Root cause Capacity exhaustion

Component Database
Contributing factor Inefficient queryRetry storm
Trigger
A high-scale backfill job run by an internal Atlassian service sent a large volume of calls to certain Bitbucket API endpoints, which ran expensive queries against the primary database.

Detection

Atlassian's real-time monitoring detected the incident as soon as it started.

Remediation

Action items

Lessons

–

Sources

Related cases

Check your cluster for this

kubegap audits a Kubernetes cluster for conditions like the ones in this case, Database among them, read-only, from Claude Code or Codex. Its checks cite public reports like this one.

For AI tools and scripts

The API needs no key. The MCP server offers search_incidents, get_incident, list_incidents, get_topic and vocab; both are explained on API and MCP.