[EMAIL PROTECTED] (Pauline Li) writes:
> data file. The data is protected from simultaneous updates using
> write locks. If one user is doing updates to the file, what happens
> to the lock if a server starts to salvage or the client loses the
> connection to the server due to network problems? Can a second
> user access the data file? Is he locked out til the first user
> reestablishes a connection and gives up the lock? Or does the
> cache manager of the first user somehow give up the lock after
> it determines it can't reestablish a connection with the server?
> If this is the case, how long does the cache manager wait before
> giving up the lock?
The server maintains the locks. A cache manager obtains a lock, but
it is only good for a few minutes (~5, I think). The cache manager
must renew the lock periodically (and does so every minute or two).
If the server hasn't heard from the locking cache manager for 5
minutes, it destroys the lock, and then anybody else can lock the
file. If the server is salvaging, then nobody can access the file, so
obviously nobody can lock the file...