Two Branches One Cart
A Dynamo-style store versions objects with vector clocks. Four versions of one key exist.
| version | clock | how it arose |
|---|---|---|
| D1 | [(Sx,1)] |
first write, coordinated by Sx |
| D2 | [(Sx,2)] |
same client updates, Sx coordinates again |
| D3 | [(Sx,2),(Sy,1)] |
same client updates D2, Sy coordinates |
| D4 | [(Sx,2),(Sz,1)] |
a different client that had read D2 updates it, Sz coordinates |
A node holding D3 receives D4. What happens, and if the client then reconciles and Sx coordinates the resulting write D5, what clock does D5 carry?
Sign in to answer questions and track your progress
Sign In