[Gluster-devel] Client side AFR race conditions?

Gordan Bobic gordan at bobich.net
Thu May 1 21:58:41 UTC 2008


Martin Fick wrote:
> I am curious, is client side AFR susceptible to race
> conditions on writes?  If not, how is this mitigated? 
> 
> 
> In other words, what prevents conflicts when client A
> & B both write to the same file?  Could A's write to
> subvolume A succeed before B's write to subvolume A,
> and at the same time B's write to subvolume B succeed
> before A's write to subvolume B?  If so, isn't this
> somewhat similar to a split brain operation?  Is there
> some form a transaction layer using file version #s
> that prevents this?

I would imagine the same thing happens as would happen on a local FS.

Gordan





More information about the Gluster-devel mailing list