r/devops • • Oct 21 '26

Discussion What’s the worst production failure your monitoring didn’t catch?

Curious how other developers handle cases where everything technically reports success — HTTP 200, Lambda completes, webhook delivered — but the intended operation never actually finishes.

For example, a payment succeeds but the customer’s subscription isn’t activated, or an API call succeeds but a downstream system never gets updated.

Have you encountered anything like this in production? How did you discover it, and what tools or processes do you use to catch these failures?

I’m especially interested in cases where traditional logs, metrics, or error alerts weren’t enough.

8 Upvotes

31 comments sorted by

11

u/ProfMerlin Oct 21 '26

Y’all have monitoring? Must be nice.

5

u/pdp10 Oct 21 '26

Everyone has monitoring. Some people have monitoring that isn't comprised of their user base.

5

u/adept2051 Oct 21 '26

Deleting every user on every server.. we just never considered the need to monitor the users on the hosts and someone (me) deleted the user yaml from the source and thus ALL users except root and service users (packaged with services code not user code) were deleted from every instance in the estate.
Monitoring did not even flag the changes i realised what I’d done and recovered them from git history and recommitted them so it was not a big issue to the services but we did see where people had tied long lived automation to their user on hosts and it failed ( those were monitored but not the user running the process )

1

u/Prudent_Design_9782 Oct 21 '26

Luckily git history makes recovery simple. What safeguards did you end up implementing after that? I was thinking linter guards or diff check in CI. 

2

u/adept2051 Oct 21 '26

No one man got PRs :) and source of truth for users so we could validate in monitoring. None service user count was time frame boxed so any user change in numbers alerted for 30minutes but did not page (visibility not disturbance)

3

u/krtalvis Oct 21 '26

some 20 minutes of a zombie/black hole k8s pod. For whatever reason, one of our Azure VMs in the AKS cluster lost connectivity to outside, but still had cluster internal connectivity. Our cluster has over 30 nodes all together. Half a year later we still don’t know why it happened. The k8s container liveness probe checks are internal to the pod so to say, so even though the pod couldnt receive or send out any traffic, the health check succeeded and the pod was never evicted. The OTel collector being hosted on another node within the same cluster of course always received stats that all pods/services/containers are healthy. All in all we had 13 nodes being used across our business critical service so one of them intermittently failing took us hours to dig through istio logs, APM and Azure metrics. In the end we found the 15-20 minute gap where one node disappeared from one of the Azure charts and later came back like nothing happened. No Azure health alert or anything of the kind was triggered, just intermittent failures and services that were seemingly all healthy. We now have readiness probes set up…

2

u/benne-masale DevOps Oct 22 '26

Had an incident today where one of our on prem harvester nodes lost network and it kicked out an etcd out of quorum on our production cluster. Took me a while to figure out what’s even going on and then to bring up the corrupted etcd again with a clean restore

3

u/Kookoombar Oct 21 '26

One thing I'd add to the reconciliation and synthetic-check ideas: instrument the outcome itself, not just the request. We emit a counter when the business step actually completes (subscription activated, downstream record written) and propagate the trace context through the queue or webhook, so a trace that starts at the payment but never reaches the activation span is visible. Then alert on the ratio of started to completed over a window, or on absence of completions, rather than on errors. In Grafana that's a simple Tempo/Mimir query, and it catches the silent 200s that error alerts miss.

2

u/Aggravating_Basil973 Oct 21 '26

It’s hard to catch failures you don’t know to look for. Even when everything is technically working, that doesn’t always mean the intended outcome was achieved.

Interestingly, we’re seeing a similar problem with AI workflows. LLMs often return perfectly valid responses, but we later realize they didn’t actually accomplish what we wanted. Everything looks successful, but the task itself failed.

There’s quite a bit of work happening around behavioral analysis and evaluations for AI workflows to catch these kinds of issues. I wonder if some of those approaches could be useful for traditional systems too.

2

u/pdp10 Oct 21 '26

LLMs often return perfectly valid responses, but we later realize they didn’t actually accomplish what we wanted.

That's the nature of non-determinism, though. Not to mention, human expectations -- notoriously arbitrary.

2

u/Future_AGI Oct 21 '26

internal account that runs the real signup every 15 minutes catches this class fast. Put it on the cheapest paid plan and refund automatically (a $0 plan skips the charge path, which is the part that breaks), assert the end state like subscription active and downstream record present, and page when that fails whatever the HTTP status said. It pairs well with the hourly Stripe reconciliation above for flows the synthetic run doesn't touch.

2

u/edbrzil Oct 21 '26

For us it was disk space filling slowly over a weekend, the alert was set at 90% and by the time it crossed the line the app was already dying from failed writes, monitoring was alive the whole time, the service was not. Since then the rule here is that anything which can fill up gets two alerts at different levels and the critical one fires before the disk is actually full, and monitoring for a service can never live on the same box as the service.

2

u/Inevitable_Remove_67 Oct 21 '26

An one way packet loss between nodes lasted for 12d causing us to perform degraded . Turns out same ip was been u held by two different nodes.

2

u/mattbillenstein Oct 21 '26

You can sorta design some of these problems out - like where it really matters with stuff like money I like to have very strict transactionality - either the entire request completes and commits a single time to the db, or the entire thing is rolled back; there is no eventual consistency or in-between states. It's not possible in every type of system, but I think people trying to handle distributed transaction management are sorta fighting a losing battle.

All that being said, I can't think of a good example at the moment where I had something silently failing on prod that was a major problem - but there probably is at least one.

1

u/Popular_Home2017 Oct 22 '26

The JVM flavor of this is the service that's up, healthy and slow. Health check returns 200 because the endpoint doesn't touch anything, CPU sits at 10%, error rate is zero, and every request is sitting in a queue waiting for one of ten database connections or a lock somebody forgot about. No metric you set up in advance catches it, because nothing failed. Latency drifted, and the p99 alert fires twenty minutes after the customer noticed.

What actually tells you what's going on in that state is a thread dump, not the dashboard. Metrics tell you "slow"; the dump tells you "300 threads parked in HikariPool.getConnection" or "all of them waiting on the same monitor in PriceService.lookup", with the line number. I'd take two of them about 30 seconds apart: if the same threads are stuck in the same place in both, that's the bottleneck, and if the IDs changed but the pile is the same size, you have a queue that drains and refills. I've been fooled by a single dump more than once, and the second one has always been cheap.

So the process answer, for the Java side at least: put jstack (or jcmd Thread.dump_to_file on JDK 21+, because jstack doesn't list virtual threads) in the on-call runbook as the first thing you run when latency rises and nothing is red, before anyone restarts the pod and destroys the evidence.

1

u/usually_guilty99 Oct 24 '26

The estate-wide deletion adds a second blind spot: monitoring watched services, not intended configuration state. Removing that YAML should have produced a scope diff showing every host and account affected, followed by a check that expected admin identities still existed. Git made recovery possible; independent verification should have stopped or bounded the rollout.

1

u/josejulianariza Nov 03 '26

Those cases are the worst because they force you to stop looking at infrastructure (pods, CPU, memory) and start looking at the business flow.

What usually happens is that HTTP 200 means "I received the request," not "I finished the process." To catch these, checking if the API is up isn't enough. You need to propagate a unique transaction ID from the frontend, through the queue (Kafka/SQS), all the way to the database.

The key is having an alert that notifies you when a trace doesn't reach its final state (e.g., "Order Created" -> "Payment Approved") within a reasonable time. If the system expects a confirmation and it never arrives, the alarm should go off right there, even if the entry log says 200.

1

u/ChiRho84 Oct 21 '26

Once had a senior dev accidentally delete the entire ingress gateway by clicking on the wrong thing in the web console.

1

u/Ok_Class2432 Oct 21 '26

we had almost same thing happen, payment showed 200 and lambda finished fine but downstream subscription never actually activated so user was charged but had no access and our dashboards were all green. The only reason we found it was a customer support ticket and that made us rethink our load testing too because our old script that slams 10k users in 60 seconds would never catch this kind of slow async failure, real users ramp up slowly and idle on pages so we had to add a real business check like did the account actually become active instead of just checking http status.

1

u/singh_abinashi Oct 21 '26

The pattern in every one of these is that success got declared at the wrong boundary.

The API returned 200 for accepting the work, the webhook returned 200 for receiving it, and nobody owned the step where the subscription actually changed state.

What I check for now is an outcome check, separate from delivery.

After the flow should have completed, something reads the world back: does this customer have an active subscription, does the downstream record match the source.

Delivery logs cannot answer that, because they only prove a message moved.

An outbox with a reconciler catches most of it.

The write and the intent to notify land in the same transaction, a worker publishes from the outbox, and a periodic job compares intended state against actual state and flags the gap.

The gap report is the alert that matters.

Error rates stay green through this whole class of failure, so the only signal is the mismatch itself.

The failures I have seen found by users were all found late for the same reason.

Every dashboard was watching delivery.

None was checking the end state.

1

u/Muted_Jellyfish_6784 Oct 21 '26

The fix that worked for us was checking outcomes, not calls. For each critical flow, define the end state in the business record, like subscription active within five minutes of a successful payment, and run a reconciliation job that compares both sides and alerts on any mismatch. It catches dropped webhooks, partial retries, and race conditions that every log reports as success.

Give every mismatch an owner and a queue, or the alerts turn into noise. We set up a decision intelligence layer to join payment events, subscription records, and support tickets, so we find the paid but inactive customers before they email us.

0

u/Strange-Cloud2435 Oct 25 '26

A classic in the database world: backups that "succeed" for months.

The backup job exits 0 every night and the dashboard is green, but the WAL archive has a gap from weeks ago (an archive_command that failed for a while, a full mount, an expired credential fixed later). The base backups are fine; any point-in-time restore past the gap is impossible, and nobody finds out until the day they need one.

What catches this class of failure:

- alert on the archive's continuity itself (every segment from the last base backup to now is present), not on the backup job's exit code;

- a scheduled restore drill into an isolated instance: restore, start it, run a few queries, record how long it took. "No successful drill in N days" is the alert that matters.

Full disclosure: I build pg_arca, a console to run self-hosted PostgreSQL (backups with scheduled restore drills, PITR, Patroni failover, DR and advanced HBA access rules), which is why this one is close to my heart.

21

u/[deleted] Oct 21 '26

[removed] — view removed comment

9

u/mattbillenstein Oct 21 '26

This is smart. We used Stripe in a business and I had the payments engineer write a simple cron job to check that our database added up exactly to what was in Stripe every hour. We found a few small bugs over the course of a couple months and had high confidence our numbers were always correct.

2

u/invisibo Oct 23 '26

Was the proxy in front of the API just giving a thumbs up irregardless of the backend service?

1

u/pdp10 Oct 21 '26

I'm glad you caught it, but that warehouse/integration layer was failing to deliver on its guarantees.

The simplest example is probably (E)SMTP. It guarantees that at least one copy of the message will be delivered, and all the design and engineering all supports this. Generalized queuing systems are typically the same.