Branch: refs/heads/master
Home: https://github.com/xrootd/xrootd
Commit: 8fb554c3a648561009fe6aebfcb782e23b971bab
https://github.com/xrootd/xrootd/commit/8fb554c3a648561009fe6aebfcb782e23b971bab
Author: Benjamin Tovar <[log in to unmask]>
Date: 2021-08-27 (Fri, 27 Aug 2021)
Changed paths:
M bindings/python/libs/client/finalize.py
Log Message:
-----------
python bindings: catch ReferenceError error when finalizing File's
The finalize method iterates over all references known to the garbage
collector, even those not created by the xrootd bindings. This does not
work correctly when the target of a weak reference has been already
collected.
This pr catches this exception, e.g.:
Traceback (most recent call last):
File
".../envs/topcoffea-env/lib/python3.8/site-packages/XRootD/client/finalize.py",
line 46, in finalize
if isinstance(obj, File) and obj.is_open():
ReferenceError: weakly-referenced object no longer exists
Commit: 246ae390e877f5d40fa04c88b87c96f28b698001
https://github.com/xrootd/xrootd/commit/246ae390e877f5d40fa04c88b87c96f28b698001
Author: simonmichal <[log in to unmask]>
Date: 2021-08-30 (Mon, 30 Aug 2021)
Changed paths:
M bindings/python/libs/client/finalize.py
Log Message:
-----------
Merge pull request #1498 from btovar/py_finalize_weak_ref_error
python bindings: catch ReferenceError error when finalizing File's
Compare: https://github.com/xrootd/xrootd/compare/02efced8eff7...246ae390e877
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
|