Unit 7 of 14 · about 5 hours · derive

Availability under partition, quorum intersection and its membership assumptions

The Systems unit on replication, quorums and consensus vocabulary derived set overlap. Here the new work is showing why overlap is not a register protocol, then deriving ABD's version rule and read write-back.

You'll be able to

  • Derive the fixed-membership intersection bound and identify where its data-retention premise fails.
  • Construct a new-then-old read history despite intersecting quorums.
  • Derive the partition availability contradiction for a linearizable register.

Covers

Availability under partitionRead and write quorum intersectionMembership assumptions behind quorum arithmetic
1

Read

In this order, only the parts listed

0 of 3 done

  1. DDIA, 2nd edition: quorum limitations and the read inversionDDIA 2e - Chapter 6 Replication and Chapter 10 Consistency Sections

    Chapter 6, Replication: Using quorums for reading and writing and Understanding the limitations of quorum consistency, pp. 231 to 234; Chapter 10, Consistency and Consensus: Implementing Linearizable Systems through The Unhelpful CAP Theorem, pp. 411 to 416, especially Figure 10-6

    Stop before Linearizability and network delays. Do not use the incident percentages as workload assumptions.

  2. Gilbert and Lynch (2002): the asynchronous impossibility argumentBrewer's Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services (Gilbert and Lynch, 2002)

    Sections 2.1 to 2.3; Section 3.1, Theorem 1 and Corollary 1.1; Sections 4.1 to 4.3 under Partially Synchronous Networks

    Follow the partition execution proof, then compare the changed timing assumptions in Section 4. Stop before Section 4.4, Weaker Consistency Conditions.

  3. Cambridge notes: ABD as a quorum protocolCambridge Concurrent and Distributed Systems Notes (Kleppmann) - Replication and Linearizability

    Michaelmas 2021/22, Section 7.2, pp. 69 to 73, through Exercise 19

    Use the single-writer register algorithm as the derivation boundary. Do not generalize it to compare-and-set or transactions.

2

Focus on

  • For one replica universe of size , read and write response sets satisfy . Overlap needs the same membership and retained acknowledged versions.
  • A read may reveal a partially propagated write before any write quorum completes. A later read can miss it unless the read protocol stabilizes the version before returning.
  • ABD uses ordered versions and a quorum write-back during reads. Set intersection is one part of that argument, not a replacement for it.
  • CAP availability requires every request received by a non-failing node eventually to receive the specified operation response, in every fair execution including lossy ones. Errors or timeouts do not satisfy a successful register operation contract.
Common mistakes · 3
  • Using quorum arithmetic across old and new memberships without a transition protocol or state transfer.
  • Treating a process that restarted without its acknowledged data as the same durable quorum participant.
  • Using an observed success fraction as the theorem's universal availability definition.
3

Try it yourself

Closed-book, before checking anything

With three fixed replicas initially 0, start a write of 1 that reaches only replica A and remains pending. A read of A and B returns 1; after it completes, a read of B and C returns 0. Derive the linearizability contradiction even though the configured write threshold is three and read threshold is two. Add a synchronous quorum write-back of the greatest ordered version before returning the first read, and show why every later size-two read intersects it. Then reproduce the CAP contradiction: complete a write on one side of a permanent partition and invoke a read on the isolated side, whose observations are indistinguishable from an execution with no write.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.For five fixed replicas with three read and three write responses, what does intersection prove?Answer

    The response sets share at least one member. It does not alone prove correct version selection, stability across failures, or linearizability.

  2. 2.Why does the pending-write inversion violate linearizability even though the write never completed?Answer

    The first read of 1 forces that write before it in any legal completion. Real time places the second read later, so returning 0 without another write is impossible.

  3. 3.Does an arbitrarily long but finite delay alone force a safety violation?Answer

    No. A linearizable system may wait. The impossibility combines the safety requirement with availability in all permitted executions, including a partition that prevents the needed communication indefinitely.

  4. 4.What does synchronous read write-back add to mere read quorum overlap?Answer

    It places the observed greatest version on a quorum before exposing it, preventing a later intersecting read from missing that version under the algorithm's version and retention rules.

5

Practice

  • Cambridge Concurrent and Distributed Systems: Exercise 19

    Michaelmas 2021/22, Section 7.2, Exercise 19 on p. 73: give pseudocode for ABD

    Derive the single-writer algorithm from the stated register contract. Annotate where it waits for quorums and why the read's second phase is necessary. The section mini-project tests the no-write-back counterexample against your checker; the exercise has no public autograder.

You're done when

Your ABD pseudocode explains each quorum phase, and you can derive both the pending-write inversion and the partition contradiction without claiming that overlap alone proves linearizability.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 13 more in the section

Also in this section