You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 509eba2
Browse filesBrowse the repository at this point in the historyBrowse files
Store: close store when dropped, keep log callback alive
Locating the model JSON file used inspect.stack(), which created a reference cycle via frames.
This kept a no longer referenced Store alive until the cyclic GC ran, so the store stayed open.
On Windows this made tests fail ("another store is still open using the same path"),
as the DB files of an open store cannot be deleted there (Linux allows it).
- Walk the frames manually and release the frame reference
- Store keeps a reference to the C log callback object while it may be called
- Fix logging.info() call missing a format placeholder
- Tests: close stores explicitly; add test_store_closed_when_dropped
0 commit comments