| 1 |
python-filelock (4.0.1-1) unstable; urgency=medium |
| 2 |
|
| 3 |
Upstream version 4.0.0 changed the on-disk protocol of SoftReadWriteLock. |
| 4 |
A lock directory is now a generation log below "<lock_file>.rw", replacing |
| 5 |
the ".state", ".write" and ".readers/" sidecar files used by 3.x. Processes |
| 6 |
running 3.x and 4.x do not see each other's locks at all: they will happily |
| 7 |
enter the same critical section instead of raising an error. If a |
| 8 |
SoftReadWriteLock path is shared between hosts, for instance on NFS or on |
| 9 |
cluster storage, upgrade all participating hosts together, and make sure no |
| 10 |
lock is held while you do. Only versions 3.27.0 up to 3.32.6 are concerned |
| 11 |
here, which in Debian means unstable and testing since 3.29.0-1 was uploaded |
| 12 |
in April 2026; the 3.18.0 in Debian 13 (trixie) predates the class entirely |
| 13 |
and has no SoftReadWriteLock. |
| 14 |
|
| 15 |
SoftReadWriteLock now also requires hard links on the filesystem holding the |
| 16 |
lock file. Where os.link is unavailable or refused, acquiring raises |
| 17 |
filelock.SoftFileLockProtocolError instead of working as it did in 3.x. |
| 18 |
|
| 19 |
Independently of the above, the poll_interval option of all lock classes, |
| 20 |
FileLock and SoftFileLock included, is now validated. Negative values, NaN |
| 21 |
and infinity raise ValueError; values that are not real numbers, booleans |
| 22 |
among them, raise TypeError. This happens in the constructor, in the |
| 23 |
property setter and in acquire(). Code that passed such a value, for example |
| 24 |
poll_interval=-1 by confusion with timeout=-1, used to be accepted silently |
| 25 |
and now fails at once. |
| 26 |
|
| 27 |
The importable API is otherwise unchanged: no name was removed, renamed or |
| 28 |
given an incompatible signature in 4.x. |
| 29 |
|
| 30 |
-- Sascha Steinbiss <[email protected]> Sat, 19 Sep 2026 21:46:43 +0200 |