[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gluster-devel] Client side afr, locking, race condition, simultanou
From: |
Martin Fick |
Subject: |
Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync |
Date: |
Wed, 7 May 2008 11:06:40 -0700 (PDT) |
> --- Brandon Lamb <address@hidden> wrote:
> So a simple 2 server, 2 client, client side afr
> setup.
>
> The clients at the SAME time do:
>
> client1 # echo "one" > file.txt
> client2 # echo "two" > file.txt
--- address@hidden wrote:
> I think the parent directory version getting
> bumped up on every create/delete operation
> (this would probably require directory locking!)
> inside it and using this parent directory version
> number at create time of files inside it as the
> major version number, with the file's own version
> number as the minor version number would solve
> this, too.
Perhaps I am missing something, but I fail to see
how this could help at all in this situation. Could
you extrapolate or give more details about how you
are picturing version #s helping out with this
problem. Here is how I picture version #s is this
scenario.
SubA SubB
/dir/file /dir/file
v2 v1 v2 v1
client1 # echo "one" > file
client2 # echo "two" > file
/dir/file < one /dir/file < two
v2 v2 v2 v2
/dir/file < two /dir/file < one
v2 v3 v2 v3
Now both subvolumes have the same version #s
but different file contents. Where/how are
you suggesting a fix to this situation?
-Martin
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
- [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, Brandon Lamb, 2008/05/06
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, Martin Fick, 2008/05/06
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, Daniel Maher, 2008/05/07
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, Krishna Srinivas, 2008/05/07
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, gordan, 2008/05/07
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync,
Martin Fick <=
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, Anand Babu Periasamy, 2008/05/09
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, gordan, 2008/05/09
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, Martin Fick, 2008/05/09
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, Gordan Bobic, 2008/05/09
- Re: [Gluster-devel] Client side afr, locking, race condition, simultanous writes, out of sync, Anand Babu Periasamy, 2008/05/09