<div class="gmail_quote">On Wed, Aug 8, 2012 at 1:46 AM, James A. Donald <span dir="ltr"><<a href="mailto:jamesd@echeque.com" target="_blank">jamesd@echeque.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">What is, however, avoidable, and should be avoided, is that you might write the most recent version of a file, and then get a mangled mixture of more recent and less recent versions.</div></blockquote><div>

<br></div><div>Most editors will attempt to inform you if you are overwriting a newer version of a file based on data from an earlier file (prior to any saved modifications). This isn't a necessary property of any editors, and it certainly isn't a necessary property of filesystems. Pretty much all filesystems will allow you to overwrite data without any complaints so long as you have the appropriate permissions.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What is inconsistency?  That you might write the most recent version of a file, and then read a less recent version of the file.</blockquote>

<div><br></div><div>The bigger problem in the wake of a network partition is that the 2/N sides of a partition may have different views of the same file, modify it while partitioned, and that only one version of the file, after the network partition is resolved, will be considered authoritative.</div>

<div><br></div><div>A strongly consistent system might inform you that the datastore is in a partitioned state and spit back an error when you attempt to write instead of allowing the write and choosing a different version of the same file later after the partition is resolved.</div>

<div><br></div><div>As Zooko points out, merges are possible, and a sophisticated distributed system will allow several versions of the same file to exist simultaneously (a.k.a. "siblings" in systems like Riak)_ then attempt to employ some sort of merge algorithm after the network partition is resolved.</div>

<div> </div></div>-- <br>Tony Arcieri<br><br>