mozilla/socorro — pull request #2161 by selenamarie (2014-07-02 14:17:25+00:00)
Title: Fixes bug 1032851 - add a retry if we get a duplicate on UPSERT

This is to address a race condition where we have two instances of a processor (thread or process) that get ahold of the same crash at the same time. It's possible in this situation for the UPSERT calls to happen close enough together that both UPDATEs fail and both INSERTs are attempted, resulting in a "duplicate key" error on one of the INSERTs. In that situation, we just have the failed UPSERT call retry.