silent exception handler block in collect_jobs
Bug #1229372 reported by
clayg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Confirmed
|
Low
|
Unassigned |
Bug Description
In the object replicators collect_jobs method, the os.listdir loop at the partition level swallows ValueError and OSError without emitting a log message. In at least once case there was a post on the mailing list that looked like it might have been some garbage in that directory that was blowing up the entire replication pass and the partition/path in question wasn't being logged.
I think the exception handler should be more narrow (I'm not sure *exactly* what it was trying to catch) and log a warning (or even a info/debug).
Changed in swift: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: low-hanging-fruit |
tags: | added: consistency-engine |
To post a comment you must log in.
ValueError is added by David Goetz in a very very old patch (a71164995aaafd 626cc16ba59cd01 dbb69e33fe0) , but I didn't find out what's it prevent from here. But OSError is added reasonable in 46a093f068a158b 72479522792509a 882d3e47f1.
I think at least we could add a log with traceback here