Microsoft issued a preliminary post-incident report on a Monday, following a roughly day-long global outage of many Microsoft services the previous week. A summary of the report was posted on social media by Microsoft EVP Charles Lamanna. Lamanna, executive vice-president of Copilot, Agents, and Platform, wrote on X that a latent bug from July caused Microsoft's servers to become overwhelmed and unresponsive. The company did not attribute the outage to a cybersecurity breach. Microsoft has said it plans to publish a final report that will include more information about the outage.
Three conditions behind the failure
According to the report, the outage resulted from three conditions that combined to trigger a previously latent defect in Microsoft 365's networking gateway infrastructure. The report says the defect caused servers to become overwhelmed and unresponsive under certain load conditions, and that it resulted from a fix prepared specifically for Microsoft 365 networking gateway servers. Lamanna described the first issue as a latent defect that overloaded servers, due to a lock contention that prevented the machine from responding. The change carrying the defect was deployed worldwide for more than three months without impact after deployment began in July.
Around 15 hours before the outages, Teams failed over from an alternative gateway to the primary gateway that supports Exchange Online, increasing load and changing traffic patterns on that gateway, according to Lamanna. An unrelated issue from the previous day had also taken nearly 14% of the gateway's server capacity out of service. The combination of reduced capacity and increased traffic created the conditions needed to trigger the latent Windows defect. According to Lamanna, requests built up until servers stopped responding during the peak window of US traffic. Lamanna also put the unrelated capacity loss at over 14% of server capacity.
How the problem spread
Within less than two hours, the previously unknown defect was encountered across Microsoft's fleet, and at the lowest point more than 80% of servers were unresponsive. Microsoft described a cascading failure from server to server, as the same load was spread across fewer servers. Traffic redirected from unresponsive endpoints made the problem more likely on the remaining functional endpoints.
Why testing missed it
Microsoft stated that it tested the change before deployment, but its test environment did not match reality. Its normal load testing did not detect the issue because of the different traffic and SKUs used in testing labs. The contention issue is worsened on machines with more cores and newer hardware, while load testing tended to focus on weaker SKUs with fewer cores.
A difficult recovery
Microsoft's normal automated recovery processes were not designed to restore service from such a broad unresponsive state. Because the defect was a latent bug from several months earlier, normal rollback, flighting and feature flags could not quickly revert the change. As servers were brought back online, queued traffic triggered the bug again and they became unresponsive again. Recovery was unusually difficult because returning servers were overwhelmed by accumulated traffic while a large proportion of the infrastructure was unresponsive at once.