Incident Library

IL-0335 Stack Exchange · 2017-01-24database

A bugcheck in the primary SQL Server put the Stack Exchange network into read-only mode and then offline for 12 minutes

A bugcheck in the SQL Server process on the primary NY-SQL02 first put it into a read-only state. Stack Exchange relies on application-level logic, not automatic SQL Server failover, to keep the sites online by querying the standby SQL servers read-only, but a bug had disabled that logic, so Stack Overflow and the rest of the network went fully offline. Restarting the SQL service on NY-SQL02 brought the network back in read-only mode, and after a sanity check of the SQL server's health the sites were put back into read-write mode, about 10 minutes after the source was found. About 3.5 seconds of uncommitted transactions were rolled back. The reason for the bugcheck was not known when the postmortem was written, but logs pointed to a possibly bad DIMM. Given the server's 384GB of memory, the team brought the network back online instead of waiting for the memory dump to complete. NY-SQL02 was then taken out of production for tests including a memory test, NY-SQL01 took all of the normal load, and the SQL cluster was brought up to 2016 SP1 CU1.

Severity
–
Scope
The Stack Exchange network, including Stack Overflow, read-only for about 5 minutes and then offline for 12 minutes; about 3.5 seconds of uncommitted transactions may have been lost
Users affected
–
Region
–
Time to detect
2m
Time to resolve
17m

Symptoms

On January 24, 2017 at 17:53 UTC the Stack Exchange network, including Stack Overflow, went into read-only mode for about 5 minutes and then went offline for 12 minutes. It took the team 2 minutes to notice the problem, 5 minutes to locate its source and 10 minutes to restore service.

The primary SQL Server, NY-SQL02, triggered a bugcheck in the SQL Server process, which first left it read-only. Stack Exchange does not allow automatic SQL Server failovers; application logic is meant to keep the sites up by reading from the standby SQL servers in read-only mode. A bug had disabled that application-level failover, so when the primary failed the whole network went offline. About 3.5 seconds of uncommitted transactions were rolled back and may have been lost.

Symptom Writes rejectedService outageFailover failureData loss

Root cause

Root cause unknown

Component Database
Contributing factor Single point of failure
Trigger
At 17:53 UTC the primary SQL Server, NY-SQL02, triggered a bugcheck in the SQL Server process.

Detection

–

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.