-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Labels
Description
Minimal, reproducible code sample, a copy-pastable example if possible
import zarr
Problem description
Using multiprocessing
in a cython context, if zarr
is in the import space I get a leaked semaphore warning.
I suspect the issue is the global mutex
variable (the lock) in numcodecs.blosc
is possibly being garbage collected prior to the multiprocessing finalizer getting called, so the weakref
is dropped and the lock is never unregistered. This is an issue when used in a multiprocessing
environment. This results in a leaked semaphore warning for me. I don't think there's a functional issue but I would like the warning to go away.
https://github.com/zarr-developers/numcodecs/blob/master/numcodecs/blosc.pyx#L78
Version and installation information
Please provide the following:
numcodecs
0.6.4- Python 3.8.0
- Linux, MacOS
conda
jstriebel and hantoine