Idempotency
Idempotency is the property that repeating the same operation with identical inputs has the same intended effect as performing it once.
HTTP idempotency does not require identical responses or prohibit a separate log entry for each attempt (RFC 9110, section 9.2.2). It is not a durability or exactly-once execution guarantee. Repeating an assignment after another writer changes the value can overwrite that intervening update; duplicate suppression and concurrency control address distinct concerns.
Crash recovery must retain the correct operands. CrookFS logs versioned old values for incremental parity replay. [3] A replay can be repeatable yet preserve inconsistent parity when it starts from mixed old/new blocks; a stale replay can also undo a later write. [4]
In a controlled native Linux AIO retry, whole-list and suffix-only retries left identical fixed-offset file bytes but produced four versus three successful write completions. The append control exposed a repeated record. Equal final content did not establish exactly-once execution; these are one-host observations, not a durability or device-rate result. [5]
Relations
- related
- Idempotency key, Retry deduplication, I/O timeout, I/O shepherding, Read-modify-write, Linux native AIO
Citations
- Gunawi et al. I/O Shepherding, SOSP 2007, section 4.1.4: non-idempotent policies
- Hesela: restartable parity repair, explicit model and counterexamples
- Hesela: native AIO partial submission, frozen observations and derived results.