Reputation: 3331
Cassandra's last write policy is based on timestamp, and this is the client timestamp. It is possible that time between clients is not synchronised - this can cause lost updates. I would like to exactly know what happens in flowing scenarios:
Upvotes: 4
Views: 1290
Reputation: 59576
I wrote a post about Cassandra Timestamps a while ago. It discusses conflict situations.
Upvotes: 1
Reputation: 5670
Yes, the timestamps are used for conflict resolution, so newer timestamps always win. The general recommendation is to run ntp on all your machines.
If for some reason ntp isn't an option, you can set the timestamp to what ever value you want on the client, but you would have to devise your own way of synchronizing that value (getting ntp working will almost always be easier).
Upvotes: 3