ERROR cannot read info: lock timeout exceeded

John Meinel john at arbash-meinel.com
Mon Sep 28 07:39:51 UTC 2015


Although given https://pad.lv/1467331 it would seem that we can easily
leave it stale if the client doesn't exit cleanly. This does sounds like a
case where using a lock file means we're going to need to provide some sort
of "break-lock" functionality. We could do something like inspect the lock
and look for a process with the same PID as in the lock file and if it
doesn't exist break it automatically. This assumes all local access, (so
sharing $HOME over NFS is risky).

John
=:->


On Mon, Sep 28, 2015 at 12:42 AM, Tim Penhey <tim.penhey at canonical.com>
wrote:

> The code does just hold the lock for the duration of the read or write.
>
> Since it is possible to have multiple environments sharing a server, and
> the server data, the access to that data is synchronized.
>
> There *shouldn't* be a case where the lock is held but not released.
>
> The lock file itself should hold some information about who locked it
> and why.
>
> Tim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20150928/d83bf51b/attachment.html>


More information about the Juju mailing list