Various systems and methods for maintaining write order fidelity in a
distributed environment are disclosed. One method, which can be performed
by each node in a cluster, involves associating a current sequence number
with each of several write operations included in a set of independent
write operations. In response to detecting that one of the write
operations in the set is ready to complete, a new sequence number is
selected, and that new sequence number is thereafter used as the current
sequence number. None of write operations in the set is allowed to return
to the application that initiated the write operations until the new
sequence number has been advertised to each other node in the cluster.
The method also involves receiving a message advertising a first sequence
number from another node in the cluster, and subsequently using the first
sequence number as the current sequence number.