Research notes / Recovery semantics
Storage timeouts: an expired timer is not a cancelled write
Updated / Primary-source review and executable illustration
A timeout says that one layer stopped waiting for completion. It does not, by itself, prove that a write never happened, that outstanding I/O has stopped, or that retrying the operation is safe.
On this page25 sections
First name the timer's owner
An application deadline, a command timeout and a path-recovery policy answer different questions. During an incident, record which layer produced the error before interpreting it as a disk failure. A deadline in a caller is not automatically a cancellation contract with every layer below it.
| Boundary | Question | Still needs evidence |
|---|---|---|
| Application deadline | How long does this caller wait? | The operation's final outcome and cancellation acknowledgment. |
| Command timeout | When does the driver begin handling an uncompleted command? | Abort, retry, reset and final completion status. |
| Path availability | Is another route usable? | How pending work behaves when all routes disappear. |
| Logical operation | Is this submission the same request as before? | Duplicate suppression and ordering across recovery. |
Which timing promise was violated?
A timing failure concerns a specified service interval, not simply a caller's patience. Cristian's classification includes a correct response that arrives too early as well as too late; required state changes also belong to the response. A missing response at one observation time does not establish permanent omission. Name the service boundary and model. [failure classification, pp. 58-60]
Constructed example, not a measurement: suppose a service promises a completion reply within 100 ms of accepting a request, but the caller stops waiting after 40 ms. Both timers start at that same acceptance event. A correct reply at 60 ms misses the caller's limit while meeting the service promise. At 120 ms it violates that promise. Neither observation identifies a hardware cause or establishes persistence. These illustrative thresholds are not recommended production settings.
Partial synchrony is a different assumption: bounds may be unknown, or apply only after an unknown stabilization time. The Dwork-Lynch-Stockmeyer model does not turn an arbitrary timer into a processor-fault diagnosis. Eventual progress under its assumptions is not a per-request latency guarantee. [section 1.2]
Stopping the wait also differs from releasing resources. Linux's completion API warns that a timed wait may return while another thread still uses the completion object. Keep its memory valid until related activity finishes. This specific lifetime rule does not decide whether a storage write was cancelled or persisted. [completion initialization]
Treat wait_for_completion_interruptible_timeout() as a three-way result, stored in a signed long: a positive value means completion, zero means timeout, and -ERESTARTSYS means interruption by a signal. A Boolean test such as !result puts success and interruption in the same branch because both are nonzero. Check the sign before interpreting zero or a positive result. The similarly named non-timed wait_for_completion_interruptible() instead returns zero on success. These are kernel synchronization results, not storage durability acknowledgements. [completion return values]
A missing request and a missing reply are different failures
An omission failure means an expected communication action is missing under the stated protocol model. A process may fail to send, a channel may lose a sent message, or a process may fail to receive it while continuing other work. This need not be a crash, and pure omission does not describe fabricated or altered message contents. [omission model, sections 2.2-2.3]
Name the abstraction before diagnosing the cause. The cited model can treat a receive timeout or an attempted receive before a message arrives as receive omission. That classification is not proof of physical packet loss. Chandra and Toueg's asynchronous crash model assumes reliable channels, but no fixed delay bound: silence still cannot distinguish a crashed process from a slow one. [model scope] [crash and timing assumptions]
| Case | Execution at the deadline | What the timeout establishes |
|---|---|---|
| Request is lost before reaching the server | The requested operation has not executed. | The caller stopped waiting without a reply. |
| Request is delayed until after the deadline | The operation has not executed yet; it may execute later. | The caller stopped waiting without a reply. |
| Reply is lost after the operation executes | The operation executed; durability is unspecified. | The caller stopped waiting without a reply. |
| Completion reply is delayed; no permanent loss assumed | The operation executed; the reply can still arrive. | The caller stopped waiting without a reply. |
These are alternative histories, not measured failure frequencies or a complete fault taxonomy. RFC 5531 explicitly leaves execution uncertain when an RPC reply is absent, including over TCP. Execution alone does not establish persistence: that needs the operation's separate storage contract. The delayed-request case also shows why a local timeout alone is not a remote cancellation guarantee. [RPC transport semantics, section 5]
Keep request identity, remote completion evidence and the timer's owner in the incident record. Choose retry behavior from the operation's replay and persistence contract, not from the word "timeout"; the existing retry example and RPC replay boundaries explain why.
A signed reply can still be wrong
Silence is only one failure boundary. A Byzantine failure permits arbitrary deviation from a component's specified behavior, including conflicting statements to different recipients. This conflicting behavior is called equivocation; it is one possibility, not a synonym for every Byzantine fault. The model describes behavior, whether caused by a software error or deliberate interference. [PBFT, system model]
Authentication identifies a sender; it does not certify the sender's claim. Under PBFT's cryptographic assumptions, a faulty replica cannot forge a correct replica's signature, but it can sign its own conflicting statements. A valid signature therefore does not establish that a write executed or reached persistent storage. This is a consequence of the fault model, not evidence that a particular storage product has returned a false acknowledgment. [system model]
| Replicas / quorum size | Two example quorums | Shared replicas | If B is faulty |
|---|---|---|---|
| 3 / 2 | A, B and B, C | B | The overlap can contain no correct replica. |
| 4 / 3 | A, B, C and B, C, D | B, C | C is a correct participant in the overlap. |
In the first row, B can endorse X to A and an incompatible Y to C. Ordinary majority intersection supplies no correct witness. For any two size-q subsets of the same n replicas, the minimum overlap is max(0, 2q - n). To force more than f shared replicas, require 2q - n > f. Correct participants must also obey the protocol's rules against conflicting votes; overlap arithmetic alone is not a safety proof.
PBFT's stated configuration uses n = 3f + 1 replicas. Two 2f + 1 replica sets then share at least f + 1 members, including a correct one when at most f are faulty. Its prepare, commit and view-change rules supply the additional protocol obligations. Do not confuse these sets with the basic client's separate requirement for f + 1 matching authenticated replies from distinct replicas for the same request. Neither count is a universal rule for every fault model. [PBFT, sections 4.1-4.4]
Intersection must be compatible with waiting. If any f replicas may withhold replies, collecting a size-q set without those replicas requires q <= n - f. Combining this with 2q - n > f gives n > 3f. For example, with four replicas and one faulty replica, requiring all four replies gives ample overlap but allows one silent replica to block collection. These are necessary set-size conditions for this quorum argument, not a complete liveness proof or a bound for every Byzantine agreement model. [PBFT, service properties]
The classic signed-message algorithm SM(m) illustrates why the model matters. Its agreement theorem permits up to m faulty participants without the oral-message requirement of more than 3m participants. But it retains reliable delivery and detectable message absence, then adds unforgeable signatures. Forwarding signed orders exposes equivocation; a signature alone does not make silence detectable. The paper's timeout implementation requires bounded message generation and transmission time plus bounded clock disagreement. Do not transplant that theorem's fault bound into PBFT or an asynchronous storage deployment. [Lamport, Shostak and Pease, sections 3, 4 and 6]
Agreement and progress are separate checks. PBFT's safety does not require bounded message delays, but eventual replies need its additional timing assumptions. Consistent execution also does not make an authorized client's bad write useful or correct for the application; access control and application invariants still matter. In a storage review, state the fault bound, membership, authentication assumptions and acknowledgment contract before interpreting a reply. [PBFT, service properties]
SCSI error handling is a process, not an instant
Linux's SCSI EH documentation allows a timeout handler to restart the timer or initiate abort/recovery. Timed-out commands can remain active below the midlayer until recovery deals with them. Entering host recovery also blocks new commands to that host. [1, sections 1.2-1.4]
The documented escalation includes device, bus and host resets. A timeout message therefore does not identify a physical media defect, and recovery scope may be wider than one command. Check the deployed kernel, low-level driver and transport rather than treating this architectural documentation as a universal timing guarantee. [1, section 2.1]
For evidence at adjacent layers, see SCSI sense and kernel logs and link failure signatures.
A correct file can hide a duplicate retry
Known partial acceptance is not uncertain completion. A native Linux AIO batch can accept only a prefix. In the inspected upstream v6.8 loop, the first rejected item stops submission; a positive return reports the earlier accepted count, not the rejected item's error. Keep the accepted requests' identities and reconcile the unaccepted suffix. [API] [implementation]
In our controlled test, an invalid descriptor in the middle of three requests left only the first accepted. After repairing it, retrying the whole list completed that first logical write twice. Retrying only the suffix did not. The two fixed-offset cases ended with identical bytes and SHA-256: final content alone hid the extra execution. With RWF_APPEND, the duplicate remained in the file. [measured results]
| Retry policy | Accepted per call | Completions | First write completions | Final bytes |
|---|---|---|---|---|
| Fixed offset, suffix only | 1 + 2 | 3 | 1 | 12 |
| Fixed offset, whole list | 1 + 3 | 4 | 2 | 12 |
| Append, suffix only | 1 + 2 | 3 | 1 | 12 |
| Append, whole list | 1 + 3 | 4 | 2 | 16 |
Measurement scope. Ten cases, 60 recorded executions on one Linux 6.8.0-149-generic/ext4 host, GCC 13.3.0 at O0/O2, glibc 2.39, buffered disposable files. Fresh replay checks the same cases. These are not independent hosts, a failure rate, a throughput benchmark or a crash durability test. All accepted operations were drained before retry; the observed append sequence is not an ordering guarantee. Upstream v6.8 explains the mechanism, but is not claimed identical to the distribution kernel. [method and controls]
Acceptance also differs from transfer success: the EOF control was accepted and returned zero bytes; a write constrained by a process-local file-size limit was accepted and completed with EFBIG. Inspect each completion separately. [completion queue] [measured controls]
Test the operation history, not just the final checksum. Keep intended work, accepted attempts and terminal results separate. This probe uses the native io_submit syscall, not POSIX aio_write or io_uring; their batch and cancellation results are different contracts. See Linux native AIO, idempotency and the offline reproduction package.
A completion cookie is not an idempotency key. The inspected v6.8 submission path copies aio_data into the completion event; that field does not look up a saved result or suppress another write. This source-level distinction is not an additional measured case. [API] [implementation] Compare RIFL's durable completion records: recognizing a reply and preventing re-execution require different mechanisms.
POSIX AIO: account for every original request
After a deadline, a batch cancellation result is not enough to release every buffer or decide which writes to retry. AIO_NOTCANCELED can accompany a mixture of pending and canceled requests. AIO_ALLDONE does not distinguish successful completion from an operation that finished with an error. Inspect each original request, not just the cancellation call. [POSIX cancellation] [return status]
Controlled native observations: six scenarios, three repetitions at each of GCC O0 and O2, gave 36 recorded executions on one Linux 6.8.0-149 / glibc 2.39-0ubuntu8.9 host. The results below are generated from the retained observations, not a device population or an estimate of how often cancellation succeeds. [data and environment]
| Scenario | Cancel result | Status after cancel or wait | Terminal status | File byte |
|---|---|---|---|---|
| Two reads: cancel the batch | AIO_NOTCANCELED | EINPROGRESS / ECANCELED | OK / ECANCELED | - |
| Queued file write: cancel | AIO_CANCELED | EINPROGRESS / ECANCELED | OK / ECANCELED | S |
| Queued file write: wait only | NOT_CALLED | EINPROGRESS / EINPROGRESS | OK / OK | W |
| Completed writable-file write | AIO_ALLDONE | OK | OK | W |
| Completed read-only-file write | AIO_ALLDONE | EBADF | EBADF | S |
| Cancel through a dup alias | AIO_ALLDONE | EINPROGRESS | OK | - |
The queued-write pair isolates the distinction: after an expired wait, canceling the queued write left S; releasing the gate without cancellation produced W. The canceled write had not started executing. This does not demonstrate stopping a physical device write or rolling back an earlier effect. The failed-write control used a valid read-only descriptor and ended with EBADF, not a media error. [replay and controls]
Same open file description, different cancellation scope. In the alias control, dup created another descriptor for the same open file description. Calling aio_cancel(alias, NULL) returned AIO_ALLDONE while the original descriptor's read was still EINPROGRESS. The glibc-2.39 source looks up requests by submission descriptor number; an empty matching chain explains this result. The experiment did not pass a mismatched descriptor with a non-NULL control block, a combination whose result POSIX leaves unspecified. [lookup] [request grouping]
Keep the request alive until its own completion. An expired aio_suspend wait reports EAGAIN; it does not cancel outstanding work. A pending read still needs a valid control block and destination buffer. Use aio_error to establish termination before calling aio_return once for that operation. [wait] [lifetime] [retrieval]
Hesela's synthesis: retain the submission descriptor and original request identity through deadline handling. Coordinate new submissions, notification callbacks and resource ownership separately. The shared lesson with io_uring cancellation is target accounting, not interchangeable status codes. These controls use SIGEV_NONE; they do not test callback teardown, kernel io_cancel, NVMe Abort or crash durability.
Definition: POSIX AIO cancellation. Inspect the six-row JSON, claim-to-source map and offline reproduction package. The package contains original code, raw observations, tests, source receipts and its license. Run the commands in its README on the specified Linux/glibc environment; replays check reproducibility without increasing the original evidence population.
NVMe Abort: keep the request result and target result separate
Abort identifies an earlier command by submission queue (SQID) and command identifier (CID). Base 2.3 distinguishes an immediate abort from a possible deferred abort. After successful Abort completion, DW0 bit 0 is Immediate Abort Not Performed (IANP). IANP=1 does not settle the target's final outcome. [28, section 5.2.1]
| Revision | DW0 bit 0 | Completion order |
|---|---|---|
| Base 2.0d | 0: target aborted. 1: target not aborted. | When bit 0 is zero, the target's completion precedes Abort's completion. [29, section 5.1] |
| Base 2.3 | 0: immediate abort. 1: no immediate abort; a deferred abort remains possible. | Either order is permitted for immediate abort if its effects boundary is met. [28] |
That boundary prevents target effects after posting Abort's completion, apart from the target's completion entry. Hesela's inference: this is not a rollback guarantee. If deferred abort occurs, the target completes with Command Abort Requested. That status alone does not distinguish immediate from deferred abort; the Abort result and completion context still matter. [28]
In Linux v6.12's PCI driver, abort_endio() prints the Abort request status without its DW0 result or the target status. A log line Abort status: 0x0 alone therefore does not prove cancellation. nvme_timeout() may first poll for a missed completion, submit Abort and restart waiting, or take a reset path. These are source-code observations, not a hardware experiment or a description of every transport. [30]
There is an earlier observation boundary too: the same driver prints aborting before allocating the Abort request. If allocation fails, that branch restarts the timer without submitting the Abort. The message is therefore not proof that an Abort was submitted, let alone that the target stopped. [30, nvme_timeout()]
For incident review, retain both command identities, both completion records when available, and the applicable controller, transport and specification revision. Do not infer safe retry from the Abort log alone. Definition: NVMe Abort.
Keep Alive: detecting communication loss is not quiescing commands
NVMe Keep Alive detects loss of communication between a host and controller. Base 2.3 distinguishes command-based and traffic-based operation. In traffic-based mode, commands fetched by the controller can satisfy its activity check. That does not establish the completion or durability of a particular write. [31, section 3.9]
| Value | Units and scope | Do not infer |
|---|---|---|
| KATO | Protocol milliseconds; communication watchdog. | A per-write completion deadline. |
| CQT | Milliseconds; expected worst-case command quiescence after communication loss. | Zero means instantaneous quiescence. |
| ctrl-loss-tmo | Seconds in nvme-cli v2.11; host connection-retry budget. | Rollback of an uncertain write. |
The protocol's Keep Alive Timeout (KATO) uses milliseconds. The controller rounds KATO upward to its reported granularity when necessary. By contrast, nvme-cli v2.11's nvme connect --keep-alive-tmo uses seconds, as do its separate --reconnect-delay and --ctrl-loss-tmo options. Copying a numeric value between those interfaces without its unit can change its meaning. [31, Figure 416] [32]
Command Quiesce Time (CQT), Identify Controller bytes 387:386, describes the expected worst-case time needed to quiesce outstanding commands after communication loss. Zero means unreported; a controller requiring no time should report one millisecond. Detection and quiescence are separate stages. Hesela's interpretation: stopping processing does not establish rollback of earlier effects or persistence of an uncertain write. [31, Figure 328 and sections 5.2.1.1, 9.6.2.1]
In Linux v6.12, nvme_keep_alive_work() can skip a Keep Alive command when traffic-based support and observed completion activity permit it. A busy trace without periodic Keep Alive commands is therefore not sufficient evidence that the watchdog is disabled. This is source inspection, not a device experiment or a tuning recommendation. [33]
The same Linux function logs keep-alive failed and requests a reset when request allocation fails, before submitting that Keep Alive command. The message alone does not establish that an on-wire command went unanswered; retain its error value and surrounding recovery context. [33]
Base 2.3's time-based recovery separates detection from the additional CQT wait. Its detection paths use 2 * KATT from the last submitted Keep Alive command or 3 * KATT from the last submitted command in traffic-based mode. KATT is the controller's Keep Alive timeout interval. Both paths assume transport delay of at most one KATT: these are not unconditional failover deadlines. [31, section 9.6.2.1]
Corpus: NVMe Keep Alive and Command Quiesce Time. Retain controller identity, reported values, protocol revision and command results with the incident record.
Drive recovery time is not the host's waiting limit
SCT Error Recovery Control (ERC) concerns recovery inside an ATA device. It is not the driver's command timer. For a concrete scope example, the Ultrastar DC HC670 SATA manual describes separate read and write recovery limits, with exceptions for streaming and out-of-order queued commands. That manual describes one drive family, not a timing guarantee for every SATA device. [7, section 10.17.3.2]
The smartmontools 7.5 manual uses deciseconds for ERC arguments: 70 represents seven seconds. Zero disables the feature; it does not request immediate failure. These are unit semantics, not recommended settings. The manual's query forms are smartctl -l scterc DEVICE for current values and smartctl -l scterc,p DEVICE for power-on-persistent values. Persistent/reset extensions need device support for ACS-4 or later. [8]
Adding read/write arguments changes settings. Keep an evidence-gathering query separate from configuration changes, and retain device identity, firmware, tool version and access path with the result. A reported setting is not a measured latency distribution. Hesela's synthesis: compare the drive's documented recovery policy with controller, driver and application behavior, rather than assuming that shortening one timer bounds all the others.
Definition: SCT error recovery control, including TLER and CCTL aliases.
CDL selects a device descriptor, not a number of seconds
Command Duration Limits (CDL) are another device mechanism. In the Linux v6.12 I/O-priority interface, hints 1 through 7 select duration-limit descriptors for supporting ATA/SCSI devices when the feature is enabled. Index 7 is not a seven-second host timeout. The same interface treats hints separately from scheduling class and priority level. [9]
The v6.12 ABI documents cdl_supported as a capability report and cdl_enable as a separate control, disabled by default. Capability is therefore not evidence of activation. In that version's SCSI disk driver, sd_cdl_dld() returns zero when CDL is unsupported, disabled, or the request has no valid duration hint. Enabling the feature alone does not select a nonzero descriptor for every request. [10] [11]
| Observation | Useful evidence | Does not establish |
|---|---|---|
| SCT ERC query | Current read/write settings; power-on settings queried separately if supported. | An application deadline or a benchmark result. |
| CDL capability and enable state | Whether the device reports support and the feature is active. | Which descriptor a particular request actually selects. |
| CDL request hint | The selected descriptor index and its applicable device configuration. | A universal duration, completion outcome or durability guarantee. |
This is a source-level distinction, not a tested device configuration. Check the deployed kernel, transport and device contract before applying it. No device deadline by itself answers whether an earlier uncertain write is durable or safe to repeat. Definition: command duration limit.
A CDL error does not prove that nothing happened
Linux v6.12 marks both ABORTED_COMMAND with ASC/ASCQ 2E/01-03 and COMPLETED with 55/0A as SCSIML_STAT_DL_TIMEOUT. Its SCSI retry decision suppresses retries for that classification. The internal SUCCESS return means this result can proceed through completion handling; it is not a successful write result. [12]
The next translation is BLK_STS_DURATION_LIMIT, mapped to -ETIME. By comparison, BLK_STS_TIMEOUT maps to -ETIMEDOUT. These are kernel mappings, not a promise that every filesystem or application exposes the same error unchanged. [13] [14]
Hesela's diagnostic conclusion: retain the sense key, ASC/ASCQ and layer, not just the word "timeout". This classification combines different reported outcomes. It neither certifies durability nor proves non-execution. Suppressing a SCSI retry also does not establish an end-to-end no-retry policy for higher layers. This is a source review, not fault injection.
All paths down can mean waiting, not a prompt error
Upstream no_path_retry supports a positive retry count, fail for no queueing, or queue for indefinite queueing. A numeric value is not a number of seconds. The effective configuration, installed version and path checker matter. Do not turn it into an end-to-end deadline by reading the name alone. [2]
Red Hat documents that queue_if_no_path can leave processes issuing I/O blocked until a path returns. It also warns that an eh_deadline-triggered HBA reset affects every target path on that adapter. A shorter setting can therefore have a wider impact, not merely reduce one request's latency. [3, sections 9.1 and 10.1]
Fibre Channel has two different expiry actions
In Linux v6.12, a detected FC remote-port loss blocks its SCSI targets and uses separate fail-fast and device-loss work. fast_io_fail_tmo requests failure of affected I/O; the handler does not guarantee that every request has finished when it returns. dev_loss_tmo governs how long a missing target is retained before removal processing. Both use seconds from the transport's loss handling, not from an application's submission. [23]
The pinned multipath manual requires the fail-fast interval to be shorter than device loss; off disables fail-fast. It also coordinates device loss with the all-path queue budget and warns about a deadlock if devices disappear while I/O remains queued. This is a configuration interaction, not a promise that adding timer values gives the application's failure time. [2]
A live path is not proof of I/O progress
The multipath manual describes a blind spot: if an FC remote port is never reported lost, the path-loss timers do not trigger even though SCSI commands can hang. Shortening those timers alone cannot cover that case. The documented eh_deadline alternative can reset the entire HBA, so it is not an isolated per-request remedy. [2, eh_deadline]
Sieve is not an FC timer experiment. Dong and colleagues' ATC 2025 study examines 48 selected issue reports from five open-source cloud systems, then targets delayed I/O under synchronization or timeout protection. Its keyword and priority filters limit representativeness; the case counts are not field failure rates. [26, sections 2-4]
In its targeted replay, Sieve reproduced 34 of those 48 bugs. Five unreproduced cases needed multiple fault injections; six other silent cases lacked suitable result checkers. This exposes two separate limits: which failure is injected and which wrong outcome the test can recognize. A run without a detected error is not proof of correct recovery. These are the authors' results, not a Hesela reproduction. [26, section 6.1.3]
One cited example, HDFS-9178, is a historical, fixed bug: slow upstream disk I/O prevented packets reaching the downstream node. The downstream reader timed out, and subsequent error reporting led the client to exclude that downstream node. Apache's issue records the mechanism and fixes; this is not a claim that current HDFS retains the bug. [27]
Hesela's synthesis: retain the observed state transition and where progress stopped, not only which timer fired first. A healthy-looking path and a timeout report each observe part of the stack; neither alone identifies the faulty component.
The same option name can belong to another transport
RHEL 9 documents that DM Multipath applies fast_io_fail_tmo to iSCSI through recovery_tmo, overriding replacement_timeout. That mapping is not the FC remote-port state machine. Record the effective protocol and configuration, not just a copied option name. [3, section 5.7]
Native NVMe-oF also has a fast_io_fail_tmo option, alongside ctrl_loss_tmo and reconnect_delay. [24] Linux v6.12 starts its native fail-fast work when a resetting controller enters the connecting state; -1 disables that work. This is not the DM-Multipath no_path_retry counter. [25]
Hesela's diagnostic rule: separate path failure, device removal, all-path queueing and controller reconnection in the incident record. None alone establishes whether an earlier write executed. These are source-reviewed contracts, not a failover experiment or recommended production settings. Definitions: fast_io_fail_tmo and dev_loss_tmo.
An apparently harmless retry can restore an old value
Hesela's deterministic example uses two logical writers and a lost response. Repeating an assignment is harmless in isolation; inserting another writer changes that argument. The table is generated from tested code during the build, with no client-side script.
| Event | Blind replay | Tracked retry | Records lost |
|---|---|---|---|
| A writes draft; its response is lost | draft | draft | draft |
| B writes approved and receives success | approved | approved | approved |
| A retries the original logical operation | draft | approved | draft |
The tracked retry returns A's earlier result without changing B's value. It does not claim that A's value is current. Assigning the retry a new request identity also defeats this model's duplicate check. The example has no disks, crashes or persistent log: losing its map is deliberately a failure case, not a recovery algorithm.
Idempotent effect is not an identical response
HTTP idempotency concerns the requested effect of repetition, not identical responses or one physical execution. RFC 9110 permits separate request logs and revision history, and explicitly allows a retry's response to differ. This is a protocol property, not proof of durable completion. [5, section 9.2.2]
A request token adds identity under a service-specific contract. DynamoDB's TransactWriteItems accepts ClientRequestToken: its window lasts ten minutes after the first request using that token completes. Changed parameters inside that window cause IdempotentParameterMismatch; after it, reuse is treated as a new request. A recognized retry can still report different consumed-capacity information. [6, ClientRequestToken]
Hesela's synthesis: retain the request identity and original parameters, and check the service's scope and retention rules before replaying an uncertain write. A token alone is not a durable exactly-once guarantee. Idempotence also does not settle concurrency: the assignment in the example above is idempotent in isolation, yet blind replay can overwrite another writer's intervening update. Compare conditional writes when the operation must depend on an observed version.
Definitions: idempotency and idempotency key. The API example is a documentation review, not an executed DynamoDB experiment or a universal retry window.
A reply cache is part of correctness, not just speed
NFSv3's stateless design does not make arbitrary repetition safe. RFC 1813 describes a duplicate request cache that recognizes recent requests and returns their previous status. Reconnection over TCP still leaves uncertain requests to resolve. A volatile cache can disappear on restart; even a surviving cache can reuse an entry before a delayed retry arrives. The duplicate may then execute as new work. [15, section 4.5]
Juszczak's Winter 1989 USENIX paper exposes the earlier mechanism: under heavy writes, slow replies provoked retransmissions that added server work and further delay. Its Ultrix experiment logged server activity and client request counts over repeated file-extension tests on two VAX configurations. Checking duplicate state before execution reduced redundant processing. A separate timeline shows a delayed duplicate create/truncate erasing an intervening write. [17, sections 2.4-5]
The historical implementation also discarded some duplicate requests without replying. That is not a recipe for NFSv4.1: its transport rules prohibit silent drops at the NFS request-processing layer. The old paper demonstrates a feedback mechanism and a correctness hazard, not the performance or behavior of a present-day NAS. [17] [16, section 2.9.2]
NFSv4.1 separates duplicate detection from saved replies
Session requests use a session ID, slot ID and sequence ID. With sa_cachethis=false, the receiver may omit the full reply but must still track execution. A retry can receive NFS4ERR_RETRY_UNCACHED_REP instead of another execution. Surviving server restart requires the negotiated persistent-session contract, not merely the NFSv4.1 label. [16, sections 2.10.6 and 18.46]
For the executable example above, ask which state prevents the late assignment and what happens when that state is unavailable. The model's lost-map case is an illustration of a missing guarantee, not an implementation of NFS recovery. Duplicate suppression, saved response bytes and stable file data are separate review questions. Compare NFS write stability.
Which retry does the receiver recognize?
A packet retransmission and a new application attempt are different events. eRPC's NSDI 2019 design handles packet loss without invoking the same request handler twice. On suspected node failure, however, pending calls receive error callbacks. That error does not establish whether an application mutation happened. [eRPC, sections 3.1, 5.3 and Appendix B]
| Mechanism | Recognized retry | Recovery obligation |
|---|---|---|
| eRPC transport | Retransmission of an outstanding RPC | Application-level recovery after an error callback |
| RIFL | Same client identity and RPC sequence number | Durable result, atomic mutation and restored lookup |
| NFSv4.1 session | Same session, slot and sequence ID | Negotiated persistent replay state across server restart |
RIFL requires the original operation identity to survive a retry; reconnecting and assigning a new identity cannot recover that association. Its completion record and mutation must become durable together. The caller's own crash-recovery contract remains essential. [RIFL, sections 2-4 and 9]
Replayable does not mean ready for new work. RFC 8881 permits a restarted server to retain only a session ID and its slot table. Such a dead session can replay cached results, but new requests receive NFS4ERR_DEADSESSION. Reanimating the session requires additional persisted client state. Separately, an uncached reply can produce NFS4ERR_RETRY_UNCACHED_REP without executing the mutation again. [sections 2.10.6.1.3 and 2.10.6.5]
Performance evidence has its own boundary. The eRPC paper's Raft experiment keeps both command logs and key-value data in DRAM. Its replication latency does not measure persistence through a total power loss. This comparison is a source review, not an executed recovery test. [section 7.1]
Hesela's engineering checklist: retain logical operation identity, record which reply state survives the relevant failure, and distinguish replay admission from new-work admission. A fresh connection alone answers none of those questions. Definitions: eRPC, RIFL and retry deduplication.
What RIFL adds beyond a retry loop
RIFL (SOSP 2015) combines stable RPC identity, completion records made durable atomically with mutations, record migration and lease-based reclamation. Its guarantee assumes reliable client state; an upstream client retrying as a new request remains a separate problem. [4, sections 2-4 and 9]
RIFL is not an expiry-only cache. Reclaiming a completion record must not allow an old request to execute again as new work. Lease expiry can still leave the earlier outcome uncertain. [4, sections 3, 4.1 and 4.3]
Separate duplicate recognition from new-request admission. In RAMCloud commit b1866af, only the new-request branches of checkDuplicate validate the lease. A retained in-progress or completed record takes the duplicate branch without that validation; a completed record supplies the original reply. A request at or below the tracked acknowledgement frontier instead raises StaleRpcException. The lease validator contacts the coordinator when its local estimate suggests expiry and rejects a zero lease identifier from that coordinator. A local timer is therefore not an automatic rejection. [pinned duplicate-check code] [pinned lease validator]
This is a function-level source comparison, not an end-to-end replay experiment or a promise that every expired-lease retry will receive a reply. The later repository commit is not identified as the paper's evaluated artifact. Neither a rejected admission nor a fresh lease proves that an earlier write did not happen. [4, sections 3 and 9] [retry deduplication]
Reclamation also has a concurrency cost. A client's firstIncomplete frontier holds back later completion records while an older RPC stalls. The paper's implementation caps non-reclaimable RPCs at 512 per client, then pauses new submissions until the oldest finishes. That is an implementation choice, not a universal retry limit. [4, section 4.2]
The paper evaluates RAMCloud over InfiniBand with three-way replication and its log cleaner disabled. This is evidence about a particular RPC design, not certification that Linux block retries implement it. We reviewed the design and evaluation; we did not reproduce RIFL or reuse its performance figures. [4, section 7]
Retry state must travel with the data
RIFL binds completion records to a designated object and restores their lookup at its new owner before retries arrive. Multi-object operations must choose that object consistently. A duplicate returns its original result, which can differ from the object's newer state. [4, sections 3, 4.1 and 4.4]
Constructed example: counter 0 receives increment A, committing value 1 and result 1 together; A's reply is lost. A distinct increment B then commits value 2. Ownership moves and A retries with the same identity. Each row starts from this same history; rows are alternative designs, not consecutive events.
| Destination state or policy | Counter after retry | Reply to A | Extra executions of A |
|---|---|---|---|
| Only the object moves | 3 | 3 | 1 |
| Record copied; lookup not restored | 3 | 3 | 1 |
| Reply rebuilt from current value | 2 | 2 | 0 |
| Recovery gate remains closed | 2 | Not admitted | 0 |
| Record and lookup restored | 2 | 1 | 0 |
The first three rows deliberately violate the recovery contract. Copying bytes without restoring lookup still permits a duplicate; suppressing execution but replying with 2 substitutes B's later state for A's result. Holding admission avoids another mutation in this example, but leaves the caller waiting. Restored history returns 1 while the counter stays at 2.
Scope: this deterministic illustration assumes serialized operations, atomic original commits, a live client identity and no reclamation. It does not implement replication, migration coordination, leases, crash recovery or RIFL; it cannot establish latency, availability or correctness of a real deployment.
Definitions and replay: retry rendezvous, retry deduplication, executable model and tests. Run the two downloaded files together with node --test retry-rendezvous.test.mjs.
Beldi ties replay safety to workflow lifetimes
Beldi (OSDI 2020) applies replay-safe storage operations to stateful serverless workflows. Stable instance IDs and operation steps distinguish a replay from a new invocation. Its guarantee concerns equivalent effects, not function code physically running only once. [Beldi, sections 2.2-3.3]
Its linked data-and-log structure places a write and its deduplication record in one atomicity scope. Reads differ: fetching a value and logging it need not be atomic, but replay reuses the recorded result. The design requires strongly consistent, fault-tolerant storage with atomic updates and filtered, projected scans. [sections 2.2 and 4.1-4.3]
For synchronous calls, the paper's callee callback records the result in the caller's invocation log before the callee marks itself done. Independent garbage collectors could otherwise erase the callee's history before the caller learns the outcome. [section 4.5]
Reclamation assumes every function instance terminates within T. The collector timestamps completed intents, waits T before recycling their logs, and retains disconnected rows for another T before deletion. This safety bound is separate from the collector's scheduling interval. [section 5, figure 10 and section 7.5]
Beldi's transactions also target opacity: even aborted or unfinished transactions must observe a consistent state, not merely leave a serializable committed result. This is a separate obligation from replay deduplication. Opacity alone does not promise that a transaction will commit or specify persistent recovery after a crash; those need their own contracts. [Beldi, section 6.2] [opacity, section 7] [durable opacity, sections 2.2-3.1]
Constructed example: start with x = y = 0. One transaction atomically commits x = y = 1. A concurrent read-only transaction reads x = 0, then y = 1, and aborts. The committed writer alone is serializable, but neither placing the reader before nor after it explains those values. Aborting does not erase the inconsistent observation. This is an illustration of the criterion, not an observed Beldi execution. [opacity, sections 4-5] [legal histories, section 2.2]
Hesela's interpretation: preserved identity, participating operations and bounded lifetimes are parts of this contract. It does not automatically cover an arbitrary external payment or email, or a retry after the required history has been reclaimed. This is a source-based comparison, not a runtime reproduction. See the Beldi definition and implementation scope.
Recovery can remain overloaded after the trigger ends
Retrying has a capacity cost as well as a correctness contract. Bronson and colleagues call a failure metastable when a sustaining feedback effect keeps useful throughput low after the initiating disturbance ends. A system can look healthy yet be vulnerable to this transition. Their examples simplify production experience; they are not universal capacity limits. [18, sections 1-2]
One mechanism is retry amplification: slow responses provoke extra attempts, which consume capacity and delay more responses. Duplicate suppression protects logical effects, but receiving and recognizing a duplicate still needs resources. Hesela's operational conclusion: track attempts and useful completions separately; an idempotency token is not an overload-control policy.
A concrete storage case is the 20 September 2015 DynamoDB incident. AWS describes larger membership records, a brief network disruption, delayed metadata replies and storage servers repeatedly requesting membership. The load also disrupted servers outside the initial network event. Administrative requests to add capacity initially failed under that same load. Pausing metadata requests reduced retries enough to add capacity and resume service. This is AWS's incident account, not a test performed by Hesela. [20, The DynamoDB Event]
The later OSDI study separates 21 public-report cases from an additional insider Twitter case: 22 cases across 11 organizations. Public reports were selected for evidence of the mechanism; these counts do not estimate its frequency among all storage incidents. [19, sections 2.1 and 4]
Retries are not required. In the same paper's MySQL/memcached experiment, losing hot cache entries increased backend traffic; timeouts then prevented cache refills. The authors classified no recovery within one hour as failure in that experiment, while acknowledging possible eventual recovery. That observation window is not proof of permanent non-recovery. [19, section 5.3]
Count work, not only requests. Huang et al. distinguish more attempts from more expensive attempts, such as extra error logging. Queue growth can also prolong garbage-collection interference and lower service capacity after the initial disturbance disappears. Unchanged incoming requests per second therefore does not establish unchanged resource demand. [19, section 3.3]
The cache trigger was deliberately selective. The experiment deleted the hottest entries, which are the easiest to refill. The authors call this a conservative bound on the failure region, not a safety guarantee for arbitrary evictions. Their hit-rate comparison also changes popularity skew. Hesela's reading: this does not isolate cache hit rate as an independent cause. [19, section 5.3]
Observe whether a queue actually drains. Bronson et al. describe tracking minimum queueing delay over a sliding window: a brief low value distinguishes a drained queue from persistently delayed work, even if its current length is large. This is an internal-queue signal used to inform overload policies, not a universal threshold or a test proving metastability. [18, section 3]
For a storage recovery review, preserve the trigger's start and end, original request rate, attempts per logical operation, useful completion rate and the recovery actions' resource needs. Test whether the system returns to useful service after the disturbance ends. Limiting attempts and reserving recovery capacity are design questions to evaluate, not permission to disable retries or lengthen every timeout. Continue with replica fan-out and tail latency for the separate cost of sending work to multiple replicas.
Count attempts across the stack, not just inside one loop
A local retry limit can hide a much larger backend workload. In a serial chain where every attempt fails and each caller exhausts its own allowance, the maximum number of leaf calls is the product of the layers' total-attempt limits. Three attempts means the first attempt plus two retries; three retries means four attempts. [21, retry guidance]
| Policy in the illustration | Total-attempt limits, outer to inner | Leaf calls |
|---|---|---|
| Three attempts at every layer | 3 / 3 / 3 / 3 / 3 | 243 |
| Three retries at every layer | 4 / 4 / 4 / 4 / 4 | 1,024 |
| Only the deepest layer retries | 1 / 1 / 1 / 1 / 3 | 3 |
| One shared cap of seven leaf attempts | 3 / 3 / 3 / 3 / 3 | 7 |
The shared-cap row keeps one counter for this logical operation, checking it before further work and never resetting it when an outer layer retries. Its seven-call allowance includes the first leaf attempt. It still executes six intermediate-layer attempts. Copying a fresh allowance into each child invocation would not enforce the same bound. Seven is an example input, not a recommended production setting.
Retry budgets need an explicit scope. Google's overload chapter distinguishes a per-request allowance from an aggregate per-client retry budget, and propagates a non-retryable overload response through higher layers. Our single-operation counter does not implement that aggregate policy. [22, Deciding to Retry]
Backoff and jitter spread retries in time; without an admission limit or stopping condition, timing alone does not cap their count. A per-operation cap also leaves the number of incoming operations unconstrained. The model has no queues, timing, success probabilities, cancellation or service capacity, so it cannot predict recovery or measure overload prevention. [21]
The OSDI paper provides an empirical contrast: its three-replica MongoDB 4.4.9 experiment used roughly 6,200 successful requests/s before a restriction on the primary's CPU. At the same workload, a ten-second 78% CPU reduction recovered; an 80% reduction did not recover during the 500-second run, although the figure displays only 150 seconds. This is the authors' experiment, not a universal two-percentage-point threshold or a result of our counter. The client already used a three-second timeout and at most four retries per operation: a finite retry limit did not exclude this feedback failure. [19, section 5.2 and figure 5]
Reproduce the arithmetic with the standalone model; inspect the inputs and results. No cloud account, storage device or external dependency is used.
A useful incident record preserves uncertainty
Hesela's synthesis: record unknown outcome when that is all the evidence supports. Neither a healthy replacement path nor a new application leader answers whether an earlier operation took effect.
- Identify the original logical request, resource and timing layer; retain its identity across a genuine retry.
- Separate observed failure from assumed non-execution, and record any later completion or recovery evidence.
- Inventory device recovery, command, transport, multipath and application policies, including the all-paths-down case.
- Test delayed responses, path loss, recovery and duplicate-state loss only on disposable resources; verify final data, not just error latency.
This is a design-review checklist, not a tuning recipe. Changing queueing or resetting an adapter can disrupt live work. Use the supported procedure for the actual storage stack.
Related boundaries: fencing and stale writers and why retrying a failed fsync does not establish durability. Corpus: I/O timeout, no_path_retry and retry deduplication.
Primary sources and limits
- Linux kernel documentation: SCSI EH, sections 1.2-1.4 and 2.1.
- multipath-tools: multipath.conf(5), no_path_retry and FC timeout options; pinned commit d53932bdbee02f440518ea384e63d7c4d3f66685.
- Red Hat Enterprise Linux 9: Configuring device mapper multipath, sections 9.1 and 10.1.
- Collin Lee, Seo Jin Park, Ankita Kejriwal, Satoshi Matsushita and John Ousterhout. Implementing Linearizability at Large Scale and Low Latency. SOSP 2015; DOI 10.1145/2815400.2815416; sections 2-4, 7 and 9.
- RFC 9110: HTTP Semantics (June 2022), section 9.2.2, Idempotent Methods.
- Amazon DynamoDB API Reference: TransactWriteItems, ClientRequestToken contract.
- Western Digital: Ultrastar DC HC670 SATA product manual, revision 1.1 (2023), section 10.17.3.2.
- smartmontools 7.5: smartctl(8), SCT Error Recovery Control query, units and persistence.
- Linux v6.12: include/uapi/linux/ioprio.h, device duration-limit hints.
- Linux v6.12: sysfs-block-device ABI, cdl_supported and cdl_enable.
- Linux v6.12: drivers/scsi/sd.c, sd_cdl_dld().
- Linux v6.12: scsi_check_sense(), scsi_noretry_cmd() and completion disposition.
- Linux v6.12: scsi_result_to_blk_status(), SCSIML_STAT_DL_TIMEOUT mapping.
- Linux v6.12: blk_errors[] and blk_status_to_errno(), duration limit versus timeout.
- RFC 1813: NFS Version 3 Protocol Specification, section 4.5, duplicate request cache.
- RFC 8881: NFSv4.1, sections 2.9.2, 2.10.6 and 18.46, session replay and persistence.
- Chet Juszczak. Improving the Performance and Correctness of an NFS Server. USENIX Winter 1989, pp. 53-63.
- Nathan Bronson, Abutalib Aghayev, Aleksey Charapko and Timothy Zhu. Metastable Failures in Distributed Systems. HotOS 2021, pp. 221-227; DOI 10.1145/3458336.3465286; sections 1-3.
- Lexiang Huang, Matthew Magnusson, Abishek Bangalore Muralikrishna, Salman Estyak, Rebecca Isaacs, Abutalib Aghayev, Timothy Zhu and Aleksey Charapko. Metastable Failures in the Wild. OSDI 2022, pp. 73-90; sections 2.1, 3.3, 4, 5.2 and 5.3.
- Amazon Web Services. Summary of the Amazon DynamoDB Service Disruption and Related Impacts in the US-East Region, 20 September 2015 incident; The DynamoDB Event.
- Mike Ulrich. Google SRE, chapter 22: Addressing Cascading Failures; retry guidance and deadline propagation.
- Alejandro Forero Cuervo. Google SRE, chapter 21: Handling Overload; Deciding to Retry.
- Linux v6.12: FC transport loss, fail-fast and target-removal work.
- libnvme v1.11: fabrics connection options, including fast_io_fail_tmo, ctrl_loss_tmo and reconnect_delay.
- Linux v6.12: nvme_start_failfast_work and nvme_change_ctrl_state.
- Gen Dong, Yu Hua, Yongle Zhang, Zhangyu Chen and Menglei Chen. Understanding and Detecting Fail-Slow Hardware Failure Bugs in Cloud Systems. USENIX ATC 2025, pp. 1127-1142; sections 2-4 and 6.1.3.
- Apache HDFS-9178: Slow datanode I/O can cause a wrong node to be marked bad; historical issue, resolved as fixed in 2015.
- NVM Express Base 2.3 (2025): section 5.2.1, Abort; Figures 146-148.
- NVM Express Base 2.0d (2024): section 5.1 and Figure 276, Abort and ACL.
- Linux v6.12: PCI NVMe abort_endio() and nvme_timeout().
- NVM Express Base 2.3 (2025): sections 3.9, 5.2.1.1 and 9.6.2.1; Figures 328 and 416, Keep Alive, KATO and Command Quiesce Time.
- nvme-cli v2.11: nvme-connect options, keep-alive-tmo, reconnect-delay and ctrl-loss-tmo.
- Linux v6.12: nvme_keep_alive_work(), nvme_keep_alive_work_period() and nvme_update_keep_alive().
- POSIX.1-2024: aio_cancel, cancellation scope and batch return values.
- POSIX.1-2024: aio_return, terminal status and one-time retrieval.
- POSIX.1-2024: aio_read, control-block and buffer lifetime.
- POSIX.1-2024: aio_suspend, expired waits and EAGAIN.
- glibc-2.39: rt/aio_cancel.c, __aio_cancel and descriptor-number lookup.
- glibc-2.39: rt/aio_misc.c, helper allocation and request grouping.
- Hesela: six native POSIX AIO cancellation cases, observed results and environment.
- Hesela: POSIX AIO cancellation, frozen source, observations, tests and offline replay.
- Linux man-pages: io_submit(2), short submission counts and RWF_APPEND.
- Linux man-pages: io_getevents(2), completion-event retrieval.
- Upstream Linux v6.8: fs/aio.c, io_submit loop and per-request completion.
- Hesela: native AIO partial submission, frozen observations and derived results.
- Hesela: native AIO source, observations, tests and exact-member offline archive.
- Anuj Kalia, Michael Kaminsky and David Andersen. Datacenter RPCs can be General and Fast. NSDI 2019, pp. 1-16; sections 3.1, 5.3, 7.1 and Appendix B.
- Zhang et al. Fault-tolerant and transactional stateful serverless workflows. OSDI 2020, pp. 1187-1204; sections 2.2-5 and 7.5.
- Rachid Guerraoui and Michal Kapalka. On the Correctness of Transactional Memory. PPoPP 2008, sections 4, 5.1-5.2 and 7.
- Bila et al. Defining and Verifying Durable Opacity: Correctness for Persistent Software Transactional Memory. arXiv:2004.08200v1, sections 2.2 and 3.1, Definitions 4-5.
- Graversen, Montesi and Peressotti. A Promising Future: Omission Failures in Choreographic Programming. arXiv:1712.05465v4, 2025; introduction and sections 2.2-2.3.
- RFC 5531: RPC, Remote Procedure Call Protocol Specification Version 2, section 5, Transports and Semantics.
- Chandra and Toueg. Unreliable Failure Detectors for Reliable Distributed Systems. JACM 43(2), 225-267, 1996; introduction and section 2.1.
- Flaviu Cristian. Understanding Fault-Tolerant Distributed Systems. Communications of the ACM 34(2), 56-78, 1991; Failure Classification and Failure Semantics, pp. 58-60.
- Dwork, Lynch and Stockmeyer. Consensus in the Presence of Partial Synchrony. JACM 35(2), 288-323, 1988; section 1.2.
- Linux kernel documentation: Completions, Initializing completions and timed waits.
- Miguel Castro and Barbara Liskov. Practical Byzantine Fault Tolerance. OSDI 1999, section 2: System Model.
- Castro and Liskov. Practical Byzantine Fault Tolerance. OSDI 1999, section 3: Service Properties.
- Castro and Liskov. Practical Byzantine Fault Tolerance. OSDI 1999, sections 4.1-4.4: clients, normal operation and view changes.
- Leslie Lamport, Robert Shostak and Marshall Pease. The Byzantine Generals Problem. ACM TOPLAS 4(3), 382-401, July 1982; sections 3, 4 and 6.
- RAMCloud UnackedRpcResults.cc: checkDuplicate and Client::processAck, commit b1866af
- RAMCloud ClientLeaseValidator.h: validate, commit b1866af
NVMe Abort sources checked on 7 November 2026; the comparison is pinned to Base 2.0d and 2.3, not a claim about every later revision. FC and native NVMe timer sources checked on 23 October 2026; metastability sources checked on 11 November 2026; NFS retry sources checked on 19 October 2026. Device-timer sources and RIFL checked on 16 October 2026; HTTP and token-contract sources checked on 15 October 2026. No hardware fault injection, failure-rate estimate or universal timeout value is claimed. Protocol- and version-specific behavior still needs validation.