How Swift resolves the conflicts between serveral replications of data

asked 2012-05-20 08:56:32 -0600

ning gravatar image

Suppose a data object is saved in Swift with 3 replications on 3 zones. Assume some bits in the first replication of data are changed from 1 to 0, a different set of bits in the second replication of data are changed from 0 to 1. The third replication of data is same as before (no changes at all). Which replication should be used to synchronize the other two replications ? Does Swift use time-stamp to judge this ?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-05-20 13:11:27 -0600

notmyname gravatar image

Swift resolves conflict by timestamp (last write wins).

In your example, swift would detect the bit flip (because it would no longer match it's md5 fingerprint). The object would be quarantined and replaced with good data by replication.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-05-20 08:56:32 -0600

Seen: 26 times

Last updated: May 20 '12