Closed
Bug 677369
Opened 14 years ago
Closed 14 years ago
ADU does not understand the new version strings
Categories
(Socorro :: General, task, P1)
Socorro
General
Tracking
(Not tracked)
VERIFIED
FIXED
2.2
People
(Reporter: brandon, Assigned: brandon)
References
()
Details
Attachments
(2 files, 2 obsolete files)
|
2.47 KB,
patch
|
laura
:
review+
|
Details | Diff | Splinter Review |
|
520 bytes,
patch
|
peterbe
:
review+
|
Details | Diff | Splinter Review |
The ADU reports a key error for the new version strings. The exception is as follows:
127.0.0.1:39250 - - [08/Aug/2011 14:24:17] "HTTP/1.1 GET /201010/topcrash/sig/trend/rank/p/Firefox/v/6.0b3/type/browser/end/2011-08-08T14:00:00T+0000/duration/72/listsize/300" - 500 Internal Server Error
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/web.py-0.33-py2.6.egg/web/application.py", line 242, in process
return self.handle()
File "/usr/lib/python2.6/site-packages/web.py-0.33-py2.6.egg/web/application.py", line 233, in handle
return self._delegate(fn, self.fvars, args)
File "/usr/lib/python2.6/site-packages/web.py-0.33-py2.6.egg/web/application.py", line 396, in _delegate
return handle_class(f)
File "/usr/lib/python2.6/site-packages/web.py-0.33-py2.6.egg/web/application.py", line 387, in handle_class
return tocall(*args)
File "/home/bsavage/trunk/socorro/webapi/webapiService.py", line 60, in GET
raise Exception(stringLogger.getMessages())
Exception: ERROR Caught Error: <type 'exceptions.KeyError'>
ERROR ('Firefox', u'6.0b3')
ERROR trace back follows:
ERROR Traceback (most recent call last):
ERROR File "/home/bsavage/trunk/socorro/webapi/webapiService.py", line 46, in GET
result = self.get(*args)
ERROR File "/home/bsavage/trunk/socorro/services/aduByDay.py", line 29, in get
parameters.productdims_idList = [self.context['productVersionCache'].getId(parameters.product, x) for x in parameters.listOfVersions]
ERROR File "/home/bsavage/trunk/socorro/lib/productVersionCache.py", line 47, in getId
raise KeyError((product, version))
ERROR KeyError: ('Firefox', u'6.0b3')
127.0.0.1:39256 - - [08/Aug/2011 14:24:17] "HTTP/1.1 GET /201005/adu/byday/p/Firefox/v/8.0a1;7.0a2;6.0b3;5.0/rt/any/os/Windows;Mac;Linux/start/2011-08-04/end/2011-08-07" - 500 Internal Server Error
Updated•14 years ago
|
| Assignee | ||
Updated•14 years ago
|
Target Milestone: --- → 2.2
| Assignee | ||
Comment 1•14 years ago
|
||
Taking a second look at this, it's an issue related directly to the work I was working on. Taking it to fix.
Assignee: adrian → bsavage
Depends on: 676081
| Assignee | ||
Comment 2•14 years ago
|
||
Attachment #551677 -
Flags: review?(chris.lonnen)
| Assignee | ||
Updated•14 years ago
|
Severity: normal → blocker
Priority: -- → P1
| Assignee | ||
Updated•14 years ago
|
Attachment #551677 -
Flags: review?(laura)
Comment 3•14 years ago
|
||
Comment on attachment 551677 [details] [diff] [review]
Patch for fixing the broken table references
You left the debug logging in, change that for an r+ from me
Attachment #551677 -
Flags: review?(laura) → review-
| Assignee | ||
Comment 4•14 years ago
|
||
This patch is the same but removes the debug data I had included earlier.
Attachment #551677 -
Attachment is obsolete: true
Attachment #551677 -
Flags: review?(chris.lonnen)
Attachment #551745 -
Flags: review?(laura)
Updated•14 years ago
|
Attachment #551745 -
Flags: review?(laura) → review+
| Assignee | ||
Comment 5•14 years ago
|
||
Committed revision 3348.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 6•14 years ago
|
||
The schema change to alter daily_crashes adu_day column to be date instead of timestamp was reverted, since it breaks existing code for graphs.
Here's a quick fix, although really we could do away with a lot of this code by just having daily_crashes populated directly with the ADU counts, since it's a materialized view that's generated from tcbs anyway.
Peter, do you see a more elegant way to patch this for 2.2?
Attachment #552316 -
Flags: review?(peterbe)
Updated•14 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 7•14 years ago
|
||
Comment on attachment 552316 [details] [diff] [review]
fix broken graphs on stage
Review of attachment 552316 [details] [diff] [review]:
-----------------------------------------------------------------
I'm guessing the purpose of this hack is because "adu_day" is a DATE and "adu_date" is a DATETIME (aka. TIMESTAMP). Why not just make the cast inside the SQL. E.g.
sql = """
select
adu_date::DATE as date,
substring(os_name, 1, 3) as product_os_platform,
sum(adu_count)::BIGINT
from
Attachment #552316 -
Flags: review?(peterbe) → review-
Comment 8•14 years ago
|
||
Ah of course, thanks Peter. Was late and felt like I must be missing something :)
We actually want the cast on the daily_crashes adu_day column, I just tested this against stagedb and it seems to work.
Assignee: bsavage → rhelmer
Attachment #552316 -
Attachment is obsolete: true
Attachment #552401 -
Flags: review?(peterbe)
Updated•14 years ago
|
Attachment #552401 -
Flags: review?(peterbe) → review+
Comment 9•14 years ago
|
||
Landed on trunk and 2.2 branch:
Sending socorro/services/aduByDay.py
Transmitting file data .
Committed revision 3398.
Committed revision 3399.
Assignee: rhelmer → bsavage
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Comment 10•14 years ago
|
||
QA verified. Cycling through the different version strings behaves as expected and does not produce errors.
Status: RESOLVED → VERIFIED
Updated•14 years ago
|
Component: Socorro → General
Product: Webtools → Socorro
You need to log in
before you can comment on or make changes to this bug.
Description
•