DIRACGrid / DIRAC

DIRAC Grid
http://diracgrid.org
GNU General Public License v3.0
110 stars 173 forks source link

[8.0] Remove dead code path in ReplicateAndRegister #7653

Open chaen opened 2 weeks ago

chaen commented 2 weeks ago

@chrisburr @andresailer I need a good review of that one :-) (not the RMS, that's just dead code) Oyr FTS agents had half a billion of proxy files left... not with this anymore I hope :)

BEGINRELEASENOTES

*Core CHANGE: register the DictCache destructor as an atexit handler

ENDRELEASENOTES

chrisburr commented 2 weeks ago

Isn't the issue here that the FTSAgent isn't passing a deleteFunction so there is nothing to delete the files?

chaen commented 2 weeks ago

Isn't the issue here that the FTSAgent isn't passing a deleteFunction so there is nothing to delete the files?

I don't think it is, as the ProxyManagerClient which the FTS3Agent uses has the proper delete function https://github.com/DIRACGrid/DIRAC/blob/877f334cf10eff17f046e757e2df82c158de12f4/src/DIRAC/FrameworkSystem/Client/ProxyManagerClient.py#L33

chrisburr commented 2 weeks ago

Delightful! A global singleton and a reference cycle between DictCache and ProxyManagerClient. It's impossible for this object to ever get garbage collected.

I think the right way to fix this is: https://github.com/DIRACGrid/DIRAC/pull/7666

chrisburr commented 2 weeks ago

I guess this should be rebased and renamed to just include the dead code removal.