Thirty Three Arrives Late
Client C1 takes a 20 second lease at t = 1 s and gets fencing token 33. A stop-the-world pause freezes it from t = 5 s to t = 28 s. C2 acquires the same lock at t = 22 s and gets token 34.
The storage service enforces one rule: reject any write whose token is lower than the highest token it has already accepted. Four writes arrive.
| t | client | token | write |
|---|---|---|---|
| 3 s | C1 | 33 | A |
| 23 s | C2 | 34 | B |
| 28 s | C1 | 33 | C |
| 31 s | C2 | 34 | D |
Which writes does the storage service accept?
Sign in to answer questions and track your progress
Sign In