Skip to content
WebsiteHosting.com

concept Backend & software

Quorum intersection without magical consistency guarantees

When read and write quorums come from the same fixed set of replicas, R plus W is greater than N guarantees a shared member. It does not guarantee that the read returns the latest completed write.

Latest recorded source check · P0126

What it means

A read quorum and a write quorum must share at least one replica when R + W is greater than N. Here, N is the number of distinct replicas for one item, R is the number that take part in the read, and W is the number that take part in the write. Both operations must draw from the same fixed set of replicas. The inequality tells you who must be in both groups, not which value the reader will return.

Try it

Simulation: Start with five replicas, a read quorum of three, a write quorum of three, and scenario evidence set to provided. The example takes the read set from the start of the replica row and the write set from the end. That puts the sets as far apart as possible.

Quorum intersection without magical consistency guarantees

Explore N/R/W quorum intersection and why intersection alone is not complete linearizability

Simulation
Modeled outcome: Intersect

Every read and write set intersects under fixed membership; this alone does not establish linearizability.

Quorum intersection without magical consistency guarantees: synthetic scenario inputs
Replaces all inputs with the documented starting example and the indicated change. Reset restores the starting example.
Fixed membership and minimum overlap

Membership counts

  1. Fixed replicas5
  2. Read quorum3
  3. Write quorum3
  4. Minimum common members1

The selected sets are the extremal example, not the identity of a guaranteed common replica for all possible sets. The count proves intersection only.

One fixed membership — extremal sets
  1. Replica 1Read: yesWrite: no
  2. Replica 2Read: yesWrite: no
  3. Replica 3Read: yesWrite: yesShared
  4. Replica 4Read: noWrite: yes
  5. Replica 5Read: noWrite: yes

Number shared in this arrangement: 1. The minimum is guaranteed; the replica identity is not.

Evaluated inputs

Required scenario evidence
provided
Read quorum
3 count
Replica count
5 count
Write quorum
3 count

Set intersection only, fixed membership and distinct replicas, no consistency protocol; old value returned from overlap remains a counterexample without version rule.

About this model

The controls set only a local, bounded scenario. The computed branch is not a verdict about a live system. Inputs listed as not evaluated did not participate in this branch after validation.

Reset restores the original inputs. It does not change the open or closed state of help or FAQ answers.

CountsRead setWrite setShared members in the example
N = 5, R = 3, W = 31, 2, 33, 4, 5Replica 3
N = 5, R = 2, W = 31, 23, 4, 5None

Change only Read quorum from 3 to 2. The write still covers replicas 3, 4, 5, but the read can now fit entirely on 1, 2. The minimum overlap drops from one replica to zero. That means a disjoint pair is possible, not that every pair is disjoint.

Use whole counts from 1 to 15; neither quorum can be larger than the replica count. An invalid input gives no overlap result. With valid counts, setting Required scenario evidence to missing gives an unknown result, not zero overlap. Reset restores 5, 3, 3 and provided. This is a local example, not a check of a running store.

Why the threshold is strict

Count the replicas outside the write set: there are N − W of them. A read can avoid the write set only if all R of its members fit in those places. With five replicas and a write to three, there are two such places. A read of two fits exactly; a read of three must take at least one member from the write set.

The minimum number shared is therefore max(0, R + W − N). In the first row, 3 + 3 − 5 = 1. Replica 3 is shared in that particular arrangement. Another choice of sets could share a different replica, or more than one. What the counts guarantee is the minimum, not the identity of a member.

A shared replica is not a read rule

Keep the first row and consider a hypothetical store with no failures. All five replicas start with value A. A write stores B on replicas 3, 4, 5 and completes after those three acknowledge it. Only then does a read begin. There are no other writes. Replicas 1, 2, 3 reply with A, A, B, respectively.

The overlap did its job: the read received B from replica 3. But suppose the reader returns the value appearing in the most replies. It returns A. For this item to behave like a single linearizable read/write register, the completed write must come before the later read in the apparent order of operations. With no intervening write, that read must return B. The sets thus satisfy the inequality even though the result violates linearizability. The value-selection rule is part of this counterexample, not part of the simulation.

To read the replica diagram, count members marked Read and Write rather than treating the two colored groups as separate populations. With five replicas and both quorums set to four, at least three replicas must belong to both. The diagram shows one such arrangement; choosing another four-member set can change which replicas are shared, not the lower bound.

In practice

When reviewing a quorum claim, write down the eligible members for the item, not just the counts. For a particular write and read, list which distinct replicas acknowledged the write and which answered the read. Mark any common member. Then ask what its acknowledgment means, which version it supplied, and how the reader chose among the replies. Those are questions the count cannot answer.

Check the failure assumptions separately. If too few eligible replicas can respond, the operation cannot collect that quorum under the stated rule. If a protocol instead counts replies from replacements outside the original set, do not apply the original N without checking the membership rules. The historical Dynamo paper illustrates the distinction: its quorum-like technique can use healthy nodes outside the preferred set, and it addresses version reconciliation separately.

Use R + W is greater than N to answer one question: must these two groups meet? To judge consistency, the next evidence to look for is the protocol rule connecting an acknowledged write to the value returned by a later read.

Frequently asked questions

Editorial questions based on the listed sources and explicitly labeled local examples.

Does equality guarantee overlap?

No. For fixed N, equality R+W=N permits two disjoint sets: for example, two of four replicas for each quorum. Strictly greater guarantees intersection.

Do write quorums also need overlap?

Whether write quorums must intersect depends on the protocol. For two subsets of W distinct members of the same fixed set of N replicas, intersection is guaranteed when twice W is greater than N. That set property alone does not establish a consistency guarantee.

What if membership changes?

The set-intersection argument assumes the same fixed membership for both operations. During reconfiguration, a protocol needs rules that preserve its safety properties across memberships.

Why is overlap insufficient?

A shared member only guarantees a chance to observe the written value under the fixed-membership assumptions. The read protocol must still select a version that satisfies its ordering guarantee. For example, choosing a majority of returned values can ignore a newer value supplied by the common member.

Sources & model boundaries

Primary references used for this explanation. The interactive example is an educational model, not a live check.

  1. Dynamo: Amazon’s Highly Available Key-value Store

    quorum-like technique. Dynamo uses a quorum-like technique with version reconciliation and can choose healthy nodes outside the preferred set. Its practical behavior must not be equated with the fixed-membership intersection proof or linearizability.

    Checked .

  2. Herlihy and Wing: Linearizability

    definition. Legal sequential history must also preserve real-time order of nonoverlapping operations; pending histories require completion rules.

    Checked .

Report an issue. Include the article URL and ID, not passwords or access keys.