cvmfs-contrib / python-cvmfsutils

BSD 3-Clause "New" or "Revised" License
0 stars 6 forks source link

cvmfs_search cache can grow without bound #34

Open DrDaveD opened 6 months ago

DrDaveD commented 6 months ago

I don't see anything in cvmfs_search that cleans up old cache items. I think the cached files should go somewhere that gets automatically cleaned up, $TMPDIR or /tmp if $TMPDIR is not set. That's what the other utlls do.

@Vbitz what do you think?

DrDaveD commented 6 months ago

In order to be reusable it will need a directory name associated with the user of course, maybe ${TMPDIR:-/tmp}/cvmfs_search_$(id -u)/ in bash terms.

Vbitz commented 6 months ago

That sounds reasonable.

The index can take some time to populate for large CVMFS repositories and it may be worth looking at future optimisations in the library itself.