[OpenAFS] Re: experience of SQLite on AFS
Sun, 25 Apr 2010 22:00:07 -0500
On Sun, 25 Apr 2010 21:19:24 -0400
Jeffrey Altman <email@example.com> wrote:
> On 4/24/2010 4:23 PM, Adam Megacz wrote:
> > Me too, but my hopes are not high. The fact that the databases
> > become corrupted when using whole-file locks only suggests that
> > there is a more subtle problem lurking here.
> Actually it is a well understood problem. I just didn't realize that
> the unix cm had it.
> When a whole file lock is write-held, all of the dirty data in the
> cache must be written back to the file server before the lock is
> released. This is currently not being done and as a result, the
> database becomes corrupted.
If I understand Simon correctly, clients are also not getting file
updates while the file is opened O_RDWR. That would still seem to be a
problem even if we flush on unlock.