Closed Bug 501228 Opened 15 years ago Closed 14 years ago

topcrashers cron unsuccessful since 4/16/2009

Categories

(Socorro :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ozten, Unassigned)

References

Details

Attachments

(1 file)

startTopCrashers.py hasn't had a successful run since 4/16 in production.

This is due to build being NULL in some rows of the reports table.

I was able to repro in dev by setting build = NULL and running the script.

Expected:
Skip this row

Actual:
2009-06-29 15:07:58,746 CRITICAL - MainThread Caught Error: psycopg2.IntegrityError
2009-06-29 15:07:58,747 CRITICAL - null value in column "build" violates not-null constraint

2009-06-29 15:07:58,765 INFO - trace back follows:
  File "/home/aking/breakpad/socorro/socorro/cron/topcrashes.py", line 184, in calculateTopCrashes
    cur.execute(sql2, (signatureData['signature'], signatureData['version'], signatureData['product'], signatureData['build'], signatureData['total'], signatureData['win'], signatureData['mac'], signatureData['lin'], signatureData['rank'], last_rank, "", signatureData['uptime_average'], signatureData['users'], update_time))
  File "/usr/lib/python2.4/site-packages/psycopg2/extras.py", line 89, in execute
    return _cursor.execute(self, query, vars, async)
Attached is a patch that fixes the issue. It rejects rows which have a NULL build value.
Attachment #385870 - Flags: review?(lars)
Attachment #385870 - Flags: review?(griswolf)
Reviewed. Patch will work, in my opinion
Austin - What's the status of this bug?
Attachment #385870 - Flags: review?(lars)
Attachment #385870 - Flags: review?(griswolf)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Component: Socorro → General
Product: Webtools → Socorro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: