mozilla/socorro — pull request #345 by twobraids (2012-02-14 21:04:50+00:00)
Title: fixes Bug 661737

Reworked the backing off retry code to include psycopg2.ProgrammingErrors as well as dumping connections after encountering a problem. The two issues together resulted in the recovery problem that we've been experiencing. In addition, I extended the retry behavior to the Monitor. It doesn't help to fix the processor if the monitor is going to die, too.

As for the extension of ProgrammingError to the list of exceptions eligible for retry, I am disturbed. I fear this may hide future errors. So I made sure that the errors are at least logged. Any suggestions are welcome.