Unit 11 of 14 · about 6 hours · derive, implement

Version vectors, dotted conflict sets and delete convergence with tombstones

The earlier unit on vector clock comparison, concurrency and dotted version vectors taught the comparison rules. Here the new work is attaching them to actual values, sibling replacement and deletion, where losing causal metadata can resurrect data or manufacture conflicts.

You'll be able to

  • Derive causal dominance and retain incomparable versions as siblings.
  • Implement version-aware delete propagation and demonstrate resurrection after unsafe tombstone removal.
  • Use per-sibling dots and incoming causal context to avoid false sibling conflicts.

Covers

Version vectors and causal conflict detectionTombstones and delete convergenceDotted version-vector conflict sets
1

Read

In this order, only the parts listed

0 of 4 done

  1. DDIA, 2nd edition: versioned siblingsDDIA 2e - Chapter 6 Replication and Chapter 10 Consistency Sections

    Chapter 6, Replication: Capturing the happens-before relationship through Version vectors, pp. 239 to 242, including Figures 6-15 and 6-16

  2. Dynamo (SOSP 2007): version context and reconciliationDynamo: Amazon's Highly Available Key-value Store (DeCandia et al., 2007)

    Section 4.4, Data Versioning, including Figure 3 and the clock-truncation discussion

  3. HLD Handbook: deletion metadata and repair coverageHLD Handbook - Consistency, Quorums, Replication and Anti-Entropy

    Theory: The divergence problem; Common Pitfalls: Repair slower than gc_grace causes tombstone resurrection

    Read for the stale-replica resurrection mechanism. Do not adopt a fixed grace duration as a proof that every replica has learned a delete.

  4. Russell Brown (2015): dots identify the siblings an update replacesVector Clocks Revisited Part 2: Dotted Version Vectors

    Sibling Explosion, What Just Happened?, Dots To The Rescue and Dot The clocks (page read 2026-10-15)

    The dotted conflict-set extension is optional. Stop before Further Material; implement the illustrated per-sibling rule, not all of Riak's metadata machinery.

2

Focus on

  • A vector dominates another when every component is at least as large; strict dominance also needs one larger component. Incomparable versions remain siblings until a policy resolves them.
  • A returned context says what the client has observed. Allocating a new server event must not falsely imply that the client observed every sibling the server has seen.
  • A tombstone is a versioned delete, not missing data. Repair must propagate it through the same causal comparison and conflict rules as values.
  • Safe tombstone reclamation needs evidence that stale data cannot return, including rejoining replicas, replacements and old messages. A timeout alone supplies no such evidence under unbounded disconnection.
Common mistakes · 3
  • Treating a larger sum of vector components as causal dominance.
  • Reusing an actor counter after restart or replacement and colliding with an old dot.
  • Dropping a tombstone from the Merkle digest or assuming every absent key means an authoritative delete.
3

Try it yourself

Closed-book, before checking anything

In Python 3, retain both versions with vectors and , then let a client observe both and issue an update at the first origin with vector ; it supersedes both. Next let an offline replica retain a value at while another records its delete at . Repair with the tombstone present must keep the deletion; erase both tombstone and causal evidence prematurely and show resurrection under the same merge. For the optional dotted extension, replay the article's Bob, Sue, Rita and Michelle writes: Rita's context covers Bob but not Sue, and Michelle's covers Bob and Sue but not Rita. The final siblings are Rita and Michelle, not all four values.
4

Quiz yourself

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

0 got · 0 missed

  1. 1.Does dominate ?Answer

    No. Each is larger in one component, so they are incomparable. A scalar total cannot replace componentwise comparison.

  2. 2.Why does a shared object vector lose information about individual siblings?Answer

    It summarizes all events known at the object, but does not identify which event introduced each value. A dot attached to each sibling lets an incoming context remove only siblings the client observed.

  3. 3.Must a concurrent delete always beat a concurrent update?Answer

    No. That is an explicit application or datatype policy, such as remove-wins or add-wins, not something causal comparison determines. An observed prior value can be deleted causally without resolving every concurrent update.

  4. 4.What is lost by truncating version-vector entries without a safe causal argument?Answer

    Accurate ancestry information. A later version may appear concurrent with an ancestor, creating unnecessary siblings or complicating safe deletion and reconciliation.

You're done when

Your tests retain concurrent siblings, remove causally superseded versions and reproduce then prevent stale-value resurrection; if you take the dotted extension, its final sibling set contains only Rita and Michelle.

Only when you can do this without notes.

Leads to

Notes

Resources · 4 for this unit, 12 more in the section
  • DDIA 2e - Chapter 6 Replication and Chapter 10 Consistency SectionsMartin Kleppmann and Chris Riccomini · primary

    Read replication completely, then the consistency-model and linearizability portions of Chapter 10. Convert every named guarantee into allowed and forbidden histories before selecting implementation policy.

  • Dynamo: Amazon's Highly Available Key-value Store (DeCandia et al., 2007)Amazon (author copy) · required

    Read the background and system architecture sections: consistent hashing, replication, vector-clock versioning, sloppy quorums, hinted handoff and Merkle-tree anti-entropy. alone does not make it linearizable, and its numbers are 2007 production results.

  • HLD Handbook - Consistency, Quorums, Replication and Anti-EntropyHLD Handbook · required

    Read Part 1 consistency plus Part 2 replication and Part 3 consistency, quorums, CAP and PACELC, clocks and Merkle trees. Use the chapter exercises as oral review after implementing the histories.

  • Vector Clocks Revisited Part 2: Dotted Version VectorsRiak - Russell Brown · support

    Read Sibling Explosion through Dot The clocks for the per-sibling dot and incoming-context replacement rule. This fills the implementation gap left by DDIA's brief dotted-vector mention; use the 2015 example, not its product-default statements as current guidance.

Also in this section