Blog

Faults vs Failures: What Reliability Means When You Investigate an Incident

Faults vs failures: a fault is never the whole root cause. Find out which safeguard should have absorbed it, and why this time it turned into an outage.

  • faults vs failures
  • reliability
  • fault tolerance
  • root cause analysis
  • incident investigation

Most incident reports name a fault and stop. The disk died. The deploy had a bug. Someone ran the wrong command against the wrong environment. Those statements are usually true, and they are almost never the root cause.

Faults happen every day in any system big enough to matter. Disks fail, nodes are rescheduled, upstream APIs return errors, a release ships a bug, an operator pastes the wrong value. Most of the time nobody notices, because something absorbs the fault: a replica takes over, a retry succeeds, a validation rejects the bad value, a rollback runs. The incident you are investigating is the rare occasion when that absorption did not happen. The useful question is not “what broke?” but “what was supposed to stop this from reaching users, and why didn’t it?”

That question comes from a distinction Martin Kleppmann draws early in Designing Data-Intensive Applications: faults vs failures. A fault is one component deviating from what it is supposed to do. A failure is the system as a whole no longer providing the service its users need. Reliability, in that framing, is not the absence of faults. It is the system’s ability to keep working correctly while faults are happening. This article applies that idea to root cause analysis: how to investigate the gap between a fault and a failure, and how to write a finding that makes the next fault less likely to become an outage.

Table of Contents

Fault, failure, and the gap between them

Kleppmann’s definitions are deliberately plain. A fault is a component of the system deviating from its specification: a disk that stops responding, a process that crashes, a function that returns the wrong value, an operator who changes the wrong setting. A failure is when the system as a whole stops providing the service it is expected to provide. Faults are local. Failures are what users experience.

The book’s point is that you cannot drive the probability of faults to zero, so a reliable system is one built to stop faults from turning into failures. Engineers call that fault tolerance, and the book is careful to say a system tolerates certain kinds of faults, not all of them. No design survives every possible fault at once.

For an investigator, the distinction changes what the incident is about:

TermWhat it isExampleThe investigation question
FaultOne component deviates from what it should doA database primary loses its diskWhich faults were present in the window?
Tolerance mechanismWhatever is meant to absorb that faultAutomatic failover to a replicaDid it run, and did it work as designed?
FailureThe service the user needs is not providedCheckout returns errors for 40 minutesWhat did users experience, and from when to when?
The gapWhy the tolerance did not contain the faultClients kept connecting to the old primaryThis is usually where the root cause is

Most weak root cause analyses jump from row one to a fix for row one. “The primary lost its disk, so we replaced the disk.” That fix is correct and does nothing for reliability, because the next disk will fail too. The finding that matters is in the last row.

There is a second consequence. If every incident is a fault that was not tolerated, then every incident has at least two parts to investigate: the fault itself and the containment that did not hold. An investigation that only explains one of them is incomplete, and the team will see the same failure again from a different fault.

What “reliable” actually means in production

“Reliable” is used loosely enough that it hides disagreements until an incident exposes them. Kleppmann’s description of what people typically expect from software is a good starting point: it does what the user expected, it tolerates users making mistakes or using it in unexpected ways, its performance is good enough for the intended load and data volume, and it prevents unauthorised access and abuse. Continuing to do all of that when things go wrong is what we mean by reliable.

Notice that only one of those expectations is about being up. The others are about being right, being fast enough, and being safe. Production systems fail on all four, and the investigation looks very different depending on which one failed.

Correct is the part dashboards cannot see

Uptime and latency are easy to measure, so they dominate dashboards. Correctness is hard to measure, so it is usually measured by a person: a finance analyst who notices that totals are wrong, a customer whose order disappeared, a partner whose webhook silently stopped arriving. A service can be up, fast and wrong at the same time, and every availability metric will say it is healthy.

For data systems this is the common case rather than the exception. A pipeline that runs every night, exits zero and loads a third fewer rows than it should is a reliability failure, even with 100% job success. The article on pipelines that succeed with missing rows walks through one of these in detail. When you define the failure for an investigation, define it in terms of the user’s expectation (the totals are wrong, the record is missing) and not in terms of the component that happened to alert.

Reliability belongs to the whole system

The second trap is treating reliability as a property of a component. A database with a five-nines SLA does not make an application reliable. An application whose clients do not handle failover correctly will fail every time the database does what it is designed to do. The reliable unit is the path from the user’s request to the stored result and back, including the code, the configuration, the network, the retries and the people who operate it.

This matters for root cause analysis because it widens the search. If the failure is at the system level, the cause can be in any component on the path, and frequently in the interaction between two components that are each working as specified.

Three kinds of fault, three investigation shapes

The book groups faults into hardware faults, software errors and human errors. The grouping is useful during an investigation because each class leaves a different shape in the evidence and defeats tolerance in a different way.

Fault classHow it behavesTypical evidenceWhy redundancy may not helpFirst question
Hardware and infrastructureMostly random and independentOne host, zone or disk; infrastructure events; a clear start timeThe standby was not ready, or failover did not reach clientsDid the tolerance mechanism trigger, and did it complete?
SoftwareSystematic and correlatedEvery instance affected; starts at a deploy, an input change or a dateEvery replica runs the same code and receives the same inputWhat changed, and what input does every affected instance share?
Human and configurationOften instant and wideA change event, a console action, a pipeline run; often no error at allThe change went through the same path as every legitimate changeWho or what changed which setting, and what checks did the change pass?

Hardware and infrastructure faults

Hardware faults are the easiest kind to reason about because they tend to be independent: one disk failing does not make the next disk more likely to fail. That independence is what makes redundancy work. Two replicas are much less likely to fail together than one is to fail alone.

In cloud environments, “hardware fault” now usually means an instance being stopped or rescheduled, a zone having a bad hour, or a managed service failing over. These are routine. If one of them caused an incident, the fault is rarely interesting. The interesting part is why the redundancy that was supposed to absorb it did not: the standby was behind, the health check was wrong, the clients cached an address, the second zone did not have capacity.

Software faults

Software faults behave differently, and the difference is the most important thing in this section. A bug is not random. Every instance running the same code has the same bug, and every instance that receives the triggering input hits it at the same moment. Kleppmann gives the example of a leap second that caused many applications to hang at once because of a Linux kernel bug: redundancy did nothing, because every redundant copy was equally affected.

So when every replica, every pod or every partition fails together, stop looking at individual hosts. Look for what they share: a code version, a configuration value, an input, a date, a dependency. Correlated software faults also include the subtle ones: a process that slowly uses up a shared resource, a dependency that gets slower and causes callers to back up, and cascading failures where one component’s problem triggers faults in the next.

Human and configuration faults

The book cites research on large internet services finding that configuration errors by operators were a leading cause of outages, ahead of hardware faults. That matches most teams’ experience. A changed timeout, a feature flag flipped in the wrong environment, a migration run twice, a credential rotated without updating one consumer: each is a fault that may produce no error at all.

The investigation shape for these is “find the change”, which means looking well beyond the repository. Infrastructure changes, console edits, secrets, vendor settings and scheduler parameters are all changes, and many of them leave no commit. When you name a human fault, also name the safeguard that let it through. The book’s advice on reducing human error is almost entirely about systems, not people: make the right thing easy and the wrong thing hard, provide sandboxes, test thoroughly, make rollback quick, and have telemetry that shows the effect of a change early. If the finding is “the operator made a mistake”, the action item will be “be more careful”, and that does not survive the next busy Friday.

Why the fault is not the root cause

Richard Cook’s short paper How Complex Systems Fail makes the point bluntly: in complex systems, attributing an accident to a single root cause is fundamentally wrong, because accidents need several contributing factors at once, each insufficient on its own. A well-run system is full of latent faults at all times; it fails when enough of them line up.

You do not have to give up on finding a cause to accept this. It changes what a cause looks like. Instead of “the disk failed”, a useful cause statement names the fault, the containment that should have absorbed it, the reason the containment did not, and the trigger that made today different from yesterday.

The containment chain

For most incidents you can write down the chain of mechanisms that should have stood between the fault and the user. Then the investigation becomes a question about each link: did it exist, did it trigger, and did it work?

Fault:        primary database instance lost its storage at 14:02
Containment:  1. managed failover promotes the standby
              2. DNS record moves to the new primary
              3. application connection pool drops dead connections
              4. clients reconnect using the new address
              5. requests in flight are retried once, idempotently
Failure:      checkout returned 5xx for 41 minutes (14:02 to 14:43)

Questions:    Which link held? Which link broke? Why?
              Has this chain ever been exercised end to end before?

Writing the chain does two things. It turns a vague incident into a short list of testable claims. And it often reveals that one of the links was never tested in production, which is a finding in its own right. A failover path that has never run end to end is a hypothesis, not a safeguard.

Investigating the gap, step by step

The method below is ordinary hypothesis-driven debugging, shaped around the fault-failure distinction.

  1. State the failure from the user’s side. What did users or downstream consumers not get, from when to when, and how much? “Checkout errors from 14:02 to 14:43, all regions, about 30% of requests” is a failure statement. “Database failover” is not; it is a fault.
  2. List every fault in the window, not just the one you suspect. Deploys, config changes, infrastructure events, upstream errors, unusual inputs, scheduled jobs. There will be several. Most will be irrelevant.
  3. For each candidate fault, write its containment chain. What should have absorbed it? Where does that mechanism leave evidence?
  4. Write rival hypotheses about the gap. Not “the disk failed” but “failover completed and clients did not follow it” versus “failover took 40 minutes” versus “failover completed and the new primary was overloaded”.
  5. Run the cheapest test that discriminates. Usually a timeline comparison: when did each link in the chain act?
  6. Confirm with independent evidence. Logs from both sides of a link, the code or config that implements it, and a comparison with a previous occasion when the same fault was absorbed.
Hypothesis about the gapPredictsRuled out if
Failover itself was slowNew primary accepting connections lateDatabase logs show promotion completed within a minute
Clients did not follow the failoverClient errors name the old address; new primary sees few connectionsClients reconnected promptly and errors continued anyway
New primary was overloaded on promotionHigh load and slow queries on the new primary; errors are timeoutsNew primary load stayed normal after promotion
Retries amplified a short outageRequest rate spikes after the fault; errors outlast the faultRequest rate stayed flat

Faults that were always there

The most expensive mistake in this kind of investigation is blaming a fault that was present before the failure too. A warning that appears in every run, an upstream error rate of half a percent, a slow query that has been slow for a year: all of these look suspicious in the incident window, and none of them can explain a failure that started on Tuesday if they were also there on Monday.

The defence is a baseline. Pull the same evidence for a healthy period and compare. In Google Cloud Logging, for example, you can count warnings and errors by message for the bad window, then run the same query for the same hours a week earlier:

resource.type="cloud_run_revision"
resource.labels.service_name="checkout-api"
severity>=WARNING
timestamp>="2026-11-03T13:30:00Z"
timestamp<"2026-11-03T15:00:00Z"

Anything that appears at a similar rate in both windows is background, not cause. What is new, missing or much more frequent in the bad window is where to look. The Google Cloud Logging debugging queries article has more patterns for this comparison.

When fault tolerance becomes the failure

The uncomfortable part of reliability engineering is that the mechanisms we add to tolerate faults are themselves components, and they have faults too. Some of the worst incidents are tolerance mechanisms behaving exactly as written in a situation their authors did not imagine. Google’s SRE book has a chapter on addressing cascading failures that describes many of these patterns, and it is worth reading before your next on-call rotation.

Retries multiply faults

A retry turns a transient fault into a success when the fault is brief and isolated. When the fault is overload, the same retry multiplies traffic against the component that is already struggling. Three layers that each make up to three attempts can turn one failed request into as many as twenty-seven attempts at the bottom. Retries also turn non-idempotent operations into duplicates: a request that succeeded on the server but timed out at the client gets executed twice.

During an investigation, check whether request rates rose after the initial fault. If they did, the failure may have been sustained by the retries rather than by the original fault, and the original fault may have been over in seconds.

Slow is worse than dead

Failure detection usually relies on timeouts and health checks. A component that crashes is easy to detect and route around. A component that is alive but slow is much harder: it passes health checks intermittently, holds connections, fills queues and pulls healthy callers down with it. Kleppmann discusses why a timeout cannot reliably distinguish a dead node from a slow one, and why declaring a node dead too eagerly can make things worse: its load moves to other nodes, which then also slow down and are declared dead in turn.

Automated failover and automatic rebalancing are both exposed to this. If the investigation finds that a failover or a rebalance happened during the incident, ask whether it was a response to the fault or a contributor to the failure. Sometimes the honest finding is that the automation made a brief slowdown into a long outage.

A worked example: the failover nobody should have noticed

This is an illustrative example in a shape most teams will recognise. The numbers are invented for the explanation.

Failure statement. From 14:02 to 14:43 on a Tuesday, about 30% of checkout requests returned errors. Other services sharing the same database cluster recovered within a minute. Nobody deployed anything that day.

Faults in the window. A managed database failover at 14:02, caused by a storage fault on the primary. An unrelated warning about a slow third-party tax API, present all week. A client library upgrade in the checkout service, deployed three weeks earlier.

Rival hypotheses about the gap.

  • H1: the failover was slow, so the database was unavailable for most of the 41 minutes.
  • H2: checkout clients did not follow the failover and kept trying the old primary.
  • H3: the tax API slowed down and checkout timed out waiting for it.

Discriminating tests. The symptom statement already weakens H1: other services sharing the cluster recovered in a minute, which they could not have done if the database were unavailable. The database’s own events confirm the new primary accepted connections at 14:03. H3 predicts errors on the tax call path; the baseline comparison shows the tax warnings at the same rate as the previous week, and checkout’s errors are connection failures, not timeouts on the tax call. H2 predicts connection errors naming the old primary’s address and a low connection count on the new primary from checkout. Both hold. Errors stop at 14:43, the moment the checkout pods were restarted.

Confirmation. A second, independent line of evidence comes from the code: the client library upgrade changed how the connection pool resolves the database hostname, caching the resolved address for the lifetime of the pool. Every failover since the upgrade would have broken checkout, but there had been none. The fault, the storage failure, was routine. The latent fault, the address caching, had been in production for three weeks. The failure needed both.

The finding. “A routine database failover was not tolerated by the checkout service because a client library upgrade three weeks earlier made the connection pool cache the database address. The failover path had not been exercised since the upgrade.” The action items follow from the gap: configure the pool to re-resolve on reconnect, add a failover test to the release checks for database client changes, and alert on connection errors to an address that is no longer the primary.

None of those action items mention the disk.

Writing the finding so it changes something

A cause statement shapes the action items, and the action items decide whether the next fault becomes a failure. The incident postmortem template has a full structure; for reliability incidents, the core is this:

Weak findingStrong finding
“A disk failed on the primary.”“A disk failure triggered a failover that the checkout clients did not follow, because of address caching introduced three weeks earlier.”
“A bad config value was deployed.”“A timeout was set to 0 in production; the config pipeline validates syntax but not ranges, and staging used a different file.”
“The upstream API was flaky.”“Upstream errors at the usual rate were retried by three layers, multiplying load until the connection pool was exhausted.”
“Human error during maintenance.”“The maintenance script accepted an environment name as a free-text argument and had no confirmation for production.”

Each strong finding names the fault, the safeguard, and the reason the safeguard failed. Each points at an action that would also protect against the next fault of the same class, which is the only kind of action item that improves reliability.

Two checks before you close the investigation. First, could the same failure happen tomorrow from a different fault? If yes, the action items are aimed at the fault, not the gap. Second, which links in the containment chain have never been exercised? Kleppmann notes that deliberately inducing faults, the approach popularised by Netflix’s Chaos Monkey, is one way to make sure tolerance mechanisms are continuously tested. You do not need a chaos platform to apply the idea. A scheduled failover drill, a restore test, or a game day that kills one consumer will tell you whether your safeguards are real before an incident does.

Frequently asked questions

What is the difference between a fault and a failure?

A fault is one component deviating from its specification: a disk error, a crashed process, a bug, a wrong configuration value. A failure is the system as a whole no longer providing the service its users need. Faults are inevitable in any large system. Reliable systems are designed so that most faults are absorbed and never become failures. An incident is a fault that was not absorbed.

Is a software bug a fault or a failure?

A bug is a fault. It becomes a failure only if it reaches users in a way that stops the system doing its job. Many bugs never do, because they sit on paths that are rarely executed, because validation catches their output, or because a retry papers over them. That is why a bug can be in production for weeks before the incident: it was a latent fault waiting for the input or condition that exposes it.

Should root cause analysis name a single root cause?

It should name a clear causal chain, which is not the same as a single cause. In practice a good finding names the fault, the safeguard that should have contained it, why the safeguard did not, and what triggered it on this occasion. Several of those may be fixable, and fixing the safeguard usually matters more than fixing the fault. The root cause analysis guide covers how to write the chain so it stays testable.

How do I know whether a fault I found is relevant?

Compare with a healthy baseline. If the same fault appears at the same rate in a period when the system was working, it cannot by itself explain a failure that started later. Relevant faults are new, more frequent, or coincide with the failure’s start and end. Even then, look for a second line of evidence, such as code, configuration or a second log source, before accepting it.

Does this apply to data pipelines as well as services?

Yes. A pipeline’s users are the people and systems that consume its output, so a pipeline that runs successfully and produces wrong or incomplete data has failed, whatever its job status says. The faults are the same kinds: infrastructure, software, and configuration or human. The containment mechanisms are different: validations, reconciliation counts, idempotent loads, and reruns from immutable input.

Faults are the weather, failures are the investigation

Faults will keep happening. The disk will fail again, the next release will contain a bug, and somebody will eventually change the wrong setting. A reliability-minded investigation treats each incident as evidence about the containment around those faults: which safeguards exist, which ones work, and which ones have never been tested. That record is the most valuable thing an investigation produces, because it describes how your system actually behaves under stress, not how its diagram says it should.

If you take one habit from Kleppmann’s framing into your next incident, make it this: when someone names the fault, ask what was supposed to stop it, and investigate that. The same discipline applies whether the gap is in a replicated database, a sharded store with a hot partition or a nightly job. Tools can help assemble the evidence. Decim, for example, investigates an incident from code, logs and tickets and keeps rejected explanations alongside the confirmed one, as described on the investigations page. It does not read metrics, so in an example like the one above the connection counts would still come from your monitoring, and the comparison with Datadog explains where each one fits.


Decim investigates incidents in your own system and returns a diagnosis where every claim links to the log line, code or check behind it, including the explanations it ruled out, so your team learns where its safeguards really hold. It reads code from GitHub, logs from Google Cloud Logging and tickets from Jira, never runs SQL and never merges a fix. Learn more at decim.dev or see pricing.

Decim investigates pipeline incidents

It reads your code, logs and tickets, works through the pipeline step by step, and confirms the cause with evidence you can check: every claim links to the log line, commit or check behind it. Then it proposes the fix and writes the report.

Request a demo

← All articles