Quick revision
The short answer
Quorum overlap only covers completed writes. The write of version 7 was still in progress: it had reached one replica but not yet a quorum, so client A's read happened to include that replica and returned 7, while client B's read hit the two replicas still holding 6. A write reported as failed can do the same, because quorum stores do not roll back partial writes. Blocking read repair closes the gap by writing the newest value to a quorum before returning it, which Cassandra 4.0 and later does unless the table's read_repair option is NONE; strict ordering such as compare-and-set still needs lightweight transactions with SERIAL reads, and clients should carry versions and ignore older ones.
What to remember
In this answer, we saw that R + W > N guarantees overlap only with completed writes. A read that touches a replica holding an in-flight or partially failed write can return the new version, while the next quorum read misses it, so versions appear to go backwards. Blocking read repair makes a returned value reach a quorum before it is returned, the default in Cassandra 4.0 and later unless read_repair is NONE. Strict ordering needs lightweight transactions with SERIAL reads, and clients should carry versions and ignore older ones.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Quorum overlap only covers completed writes. The write of version 7 was still in progress: it had reached one replica but not yet a quorum, so client A's read happened to include that replica and returned 7, while client B's read hit the two replicas still holding 6. A write reported as failed can do the same, because quorum stores do not roll back partial writes. Blocking read repair closes the gap by writing the newest value to a quorum before returning it, which Cassandra 4.0 and later does unless the table's read_repair option is NONE; strict ordering such as compare-and-set still needs lightweight transactions with SERIAL reads, and clients should carry versions and ignore older ones.
Why this question is asked
Many engineers believe that R + W > N makes a quorum store behave like a single strongly consistent database. This audit finding shows it does not, and interviewers use it to see whether we understand exactly what the quorum condition promises and what it leaves open. In this answer, we will recap the overlap argument, reproduce the anomaly step by step, look at the related case of failed writes, see how blocking read repair fixes it, and then cover the stronger tools for when ordering really matters.
1A Quick Recap: What R + W > N Promises
With N = 3 replicas, writes and reads at QUORUM each need two replicas. Any two-replica set for a read overlaps any two-replica set for a write, so a read always contacts at least one replica that holds the latest completed write, and returns it because it picks the newest timestamp.
Notice the word completed. The argument talks about writes that have already been acknowledged by a quorum. It says nothing about a write that is still on its way to the replicas, and nothing about two reads compared with each other. That is the gap this incident falls into.
2Reproducing the Anomaly
A write of version 7 starts. The coordinator sends it to all three replicas. It arrives at replica 1 first; the messages to replicas 2 and 3 are still in flight or queued. Now client A reads at QUORUM, and its coordinator happens to ask replicas 1 and 2. Replica 1 has 7, replica 2 has 6, the newest wins, A gets 7.
A moment later client B reads at QUORUM, and its coordinator asks replicas 2 and 3. Both still hold 6, so B gets 6. Each read individually obeys the quorum rule; together, time appears to go backwards. A then tells B about version 7, or a projection built from A's read conflicts with one built from B's.
9 messages in order. Play them, or step through them one at a time.
Client A's read saw a write that had not yet reached a quorum; B's read missed it.
3Failed Writes Can Do the Same
There is a second way to get the same effect. Suppose the write of version 7 reaches replica 1, but replicas 2 and 3 time out, so the client receives a write timeout or failure. The client may believe version 7 does not exist. But replica 1 has stored it, and quorum stores do not roll back partial writes. Later reads that include replica 1 return 7, others return 6, and eventually repair spreads 7 to all replicas.
So a failed write in a quorum store means unknown, not did not happen. Retrying it with the same value and timestamp is safe; assuming it was discarded is not.
4Blocking Read Repair Closes the Gap
The fix for reads is to make a returned value durable before returning it. When A's coordinator sees that replica 1 has 7 and replica 2 has 6, it writes 7 to replica 2 and waits for that write to finish before answering A. Now version 7 is on two replicas, a quorum, before anyone has seen it. Any later quorum read overlaps that quorum and must see 7 or newer, so B cannot get 6.
Cassandra 4.0 and later do exactly this by default: read repair for the replicas involved in a read is blocking, controlled per table by the read_repair option, whose default is BLOCKING. Setting it to NONE trades this guarantee away for lower read latency, so the first thing to check in this incident is the table's settings.
Blocking read repair costs a little latency on reads that find a difference, which is usually a small fraction of reads. It makes completed quorum reads monotonic: once one returns 7, later ones return 7 or newer.
5When Ordering Must Be Strict
Even with blocking read repair, quorum reads and writes are not linearizable compare-and-set operations. Two clients can each read version 7 and each write version 8 based on it, and last write wins keeps one of them. If the application needs operations such as update only if the current version is 7, it needs consensus. In Cassandra that is a lightweight transaction, UPDATE ... IF version = 7, which runs Paxos among the replicas, with reads at SERIAL (or LOCAL_SERIAL within one data center) to see the result of in-progress Paxos rounds. These cost several round trips, so we use them only where strict ordering matters.
6Making Clients Tolerate Versions
Finally, we design consumers so a backwards read does no harm. Each record carries a version number or the write timestamp, and caches and projections keep the highest version they have seen, ignoring anything older. A read that returns version 6 after a cache already holds 7 is simply dropped. This makes the system robust to every source of reordering, including retries, replays and replicas that lag, not just this one.
7Follow-up questions
Does QUORUM plus blocking read repair make the store linearizable?
It makes completed reads monotonic, but not every operation linearizable: concurrent writes still resolve by timestamp, and read-modify-write sequences can lose updates. For linearizable conditional updates, use lightweight transactions.
What happens to a write that timed out at the client?
Its outcome is unknown. It may be on some replicas and will spread through repair. The client should retry it idempotently, with the same value and ideally the same timestamp, rather than assume it failed.
Why would anyone set read_repair to NONE?
To keep read latency predictable, and for tables using time-window compaction, where read repair can mix old and new data into the same files. Teams that do this must accept non-monotonic quorum reads.
8Conclusion
In this answer, we saw that R + W > N guarantees overlap only with completed writes. A read that touches a replica holding an in-flight or partially failed write can return the new version, while the next quorum read misses it, so versions appear to go backwards. Blocking read repair makes a returned value reach a quorum before it is returned, the default in Cassandra 4.0 and later unless read_repair is NONE. Strict ordering needs lightweight transactions with SERIAL reads, and clients should carry versions and ignore older ones.
Open with
R plus W greater than N only guarantees that a read overlaps the last completed write. Here, the write of version 7 was still in progress. It had reached replica 1 but not the other two.
Then, if they want more
Client A's quorum read asked replicas 1 and 2, saw 7 and 6, and returned the newest, 7. Client B's read asked replicas 2 and 3, both still at 6, and returned 6. Each read followed the rules; together they went backwards.
A write that reports failure can cause the same thing, because a quorum store does not roll back a write that landed on one replica; it may surface later.
The fix for reads is blocking read repair: when the coordinator sees replicas disagree, it writes the newest value to the stale replicas and waits before returning, so a value is on a quorum before anyone sees it, and later quorum reads cannot return something older.
Cassandra 4.0 and later do this by default, so I would check whether the table's read_repair option was set to NONE. If the application needs strict ordering, like update only if the version is 7, quorums are not enough; I would use lightweight transactions, which run Paxos, with SERIAL reads, only on the operations that need it.
And I would make clients and caches version-aware, keeping the highest version seen and ignoring older ones, which protects against every kind of reordering.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "How can two quorum reads go backwards in time even though R + W > N, and what settings...": https://scrivio-interview-library.netlify.app/architecture/partitioning-and-replication/f01a77ff63/