benchatt / wub

Automatically exported from code.google.com/p/wub
0 stars 0 forks source link

Repo leaks tar files #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Repo domain doesn't clean up its temp tar files when asked to produce a tar for 
a whole directory.

Although they are all emitted into /tmp, they still leak, and over time 
accumulate to the detriment of the system.

Problem is I don't know the lifetime of the generated files, have no means of 
scheduling a [file delete] when they're no longer useful.

One possible solution would be to generate them into a subdir, then 
periodically clean up everything older than some magic age.

Original issue reported on code.google.com by mcc...@gmail.com on 16 Jan 2011 at 11:52

GoogleCodeExporter commented 9 years ago
Problem solved by generating tar in a thread, deleting it as soon as possible.
Tested on live wiki, seems to work.

Original comment by mcc...@gmail.com on 17 Jan 2011 at 12:54