Replica Comes Back Stale
Key cart:8812 on replicas A, B and C, with and . Versions are stamped with a vector clock, and each write here was issued by the same client after reading the previous one, so v3 descends from v2, which descends from v1.
| step | event | A | B | C |
|---|---|---|---|---|
| 1 | write v1, acked by A, B, C |
v1 |
v1 |
v1 |
| 2 | B unreachable; write v2 acked by A, C |
v2 |
v1 |
v2 |
| 3 | B returns; write v3 acked by A, B |
v3 |
v3 |
v2 |
| 4 | read at reaches B and C | v3 |
v3 |
v2 |
What does the read return, and what happens to C?
Sign in to answer questions and track your progress
Sign In