importer/git_repository: if an exception occurs, no cleanup happens

Bug #1765219 reported by Nish Aravamudan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
Fix Released
Undecided
Unassigned

Bug Description

atexit only runs on successful completion, but if a system-level issue occurs (e.g., disk is full), we get errors from subprocess or even the interpreter itself. In that case, the error is bubbled all the way up to the user and no cleanup is done. We want to cleanup in all cases.

Perhaps this should be try/except/finally in the importer's code?

Tags: import

Related branches

Revision history for this message
Robie Basak (racb) wrote :

This is now resolved by using try/finally instead in ~racb/usd-importer:importer-cleanup-tmpdir-always.

Changed in usd-importer:
status: New → Fix Committed
tags: added: import
Revision history for this message
Robie Basak (racb) wrote :

This was fixed in commit edb18ab, released in 0.8.0.

Changed in usd-importer:
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.