— Writing —

All writing

Real Problems · Production Incidents · 4 articles
Real ProblemsProduction Incidents·18 min read

When AUTO_INCREMENT Stops Incrementing — The MySQL INT Overflow Anatomy

It's 3 AM. Inserts are failing with 'Duplicate entry 2147483647' — but you never inserted a duplicate. Welcome to one of MySQL's most quietly famous outages. A friendly walk through why a signed INT AUTO_INCREMENT dies at 2.1 billion, why the error is misleading, a two-minute laptop repro, the 70% alert that prevents the whole thing — and the two mitigations: ALTER to BIGINT for small tables, and the atomic table-swap senior operators run on billion-row tables in the middle of an outage.

MySQLDatabaseProduction IncidentsSchema DesignRead →
Writing — realproblem.me