DevOps
The Migration That Locked the Table for Eleven Minutes
The column was added with a default that required a full table rewrite, so the table took an exclusive lock and every write queued behind it until the…
DevOps
The column was added with a default that required a full table rewrite, so the table took an exclusive lock and every write queued behind it until the…
Deep Dive
The pool was raised to two hundred to fix the timeouts, and the database got slower, because the connections were the contention rather than the cure, and…
DevOps
The schema change dropped a column the old version still read, so the two versions could not share the database, and the rollback stopped being a switch and…
Ecommerce
Both checkouts read one unit remaining at the same moment and both decremented it, so the store sold a product it did not have, and the reconciliation found…
Error Autopsy
A connection checked out from the pool was never committed, so the transaction sat idle holding a row lock, and everything behind it queued until the pool…
Deep Dive
The commit returns before the data is on the platter, and the gap between the log write and the flush is where durability lives, and where one setting…
Error Autopsy
One popular key expired and four hundred requests missed at the same instant, so all four hundred rebuilt the value, and the database took the whole load at…