Oops pruner script should compress oops files to save disk space
Bug #130901 reported by
Diogo Matsubara
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
The OOPS pruner script deletes non-referenced OOPSes after a certain amount of time (45 days).
We want the pruner to compress oops files to save disk space both on production servers and on devpad.
Changed in launchpad: | |
importance: | Undecided → High |
status: | New → In Progress |
Changed in launchpad: | |
assignee: | nobody → matsubara |
Changed in launchpad: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
I had a pre-implementation chat with Stuart about this bug. I'm mutating this bug into the correct thing to do.
A summary of our chat:
Currently the oops pruner does its job using only the oops filename. The pruner would need to open each oops file and parse its contents to find out the OOPS type.
An easier solution is to extend the oops pruner to compress the oops files instead.
Care must be taken for mutating the file system while iterating over it. It's better to store a list of files to compress and compress them after all the iteration has been completed.