Reliability

How do you stop a logging column from taking down order creation?

A 32-bit logging column with no foreign key overflowed and failed order creation for 54 minutes. Check columns by what they hold, not by declared keys.

2 min readDEV GroupEnterprise product teams · Operations

The log write failed the order

Check integer columns by the values they store, not by the keys declared on them, and keep a logging write from failing the order it records. A write-up on endoblog.dev, published 13 November 2026, shows the gap. On 2 November 2026, Clickpost's order creation was down for 54 minutes. A logging table deprecated in February 2026 still had a 32-bit signed integer column. That column stored IDs from another table and had no declared foreign key. Once those IDs passed 2,147,483,647, the synchronous log write failed, and the whole order-creation request returned 5xx for carriers on the legacy Python service. The newer Kotlin service had removed the write and was unaffected. Overflow monitoring covered only primary-key and foreign-key columns, so it never looked at that column. Clickpost named three contributing factors: incomplete decommissioning, gaps in capacity monitoring, and logging in the critical path.

Check the column, not the constraint

Pick capacity-check columns by type and content, not by the constraint declared on them. Any integer column that holds an ID, or a user-supplied integer, belongs on that list, including a column with no primary key and no foreign key. Monitor those columns, and widen them to 64-bit. Monitoring that only covers declared keys misses the column that fails. Clickpost's fix: a table cannot be marked deprecated while code still writes to it. Deprecated needs evidence that the writes stopped: no writer left in the code, and no write left in production. Until both are true, the table is still on the path.

A log write cannot fail the order

Keep non-essential writes out of the request's critical path. Logging, audit, and analytics can fail on their own. They should not fail the request the customer is waiting on. Clickpost's fix: a logging failure can no longer fail an order creation request. List every integer column that holds an ID or a user-supplied integer, and confirm it is 64-bit and monitored, whether or not it is a key. Confirm a failed write to a log, an audit trail, or an analytics store cannot fail the request. Confirm every table marked deprecated has no writer left in code and no write left in production. Columns checked by what they hold, a log write that cannot fail an order, and a deprecation proven by the absence of writes are software work, and that is where we fit.

Sources

Was this useful?

Get in touch

Seeing one of these in your system?

Describe what exists today and where it breaks. We will come back with a technical point of view and a scoped first step.