Librarian file scanning too slow

Bug #415233 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Stuart Bishop

Bug Description

The final stage of the Librarian scans for files that have been removed from disk but shouldn't have been. This is going far too slow. We should be able to speed it up by a few orders of magnitude by using os.listdir to find files on disk rather than os.path.exists() for each potential path.

Once this is addressed, librarian-gc.py on staging should be reenabled without the --skip-files option.

Stuart Bishop (stub)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Medium
Stuart Bishop (stub)
Changed in launchpad-foundations:
assignee: nobody → Stuart Bishop (stub)
milestone: none → 3.0
status: Triaged → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit

Fixed in devel r9223.

Changed in launchpad-foundations:
status: In Progress → Fix Committed
Stuart Bishop (stub)
Changed in launchpad-foundations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.