Closed
Bug 604229
Opened 15 years ago
Closed 15 years ago
current "potential resubmit" check prevents post_timestamp update
Categories
(Socorro :: General, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rhelmer, Assigned: rhelmer)
Details
Attachments
(1 file)
|
798 bytes,
patch
|
lars
:
review+
|
Details | Diff | Splinter Review |
In bug 602201 comment 5 I mentioned getting an exception when testing Socorro 1.8 against HBase 0.89. I thought that this was just a problem with my local setup but after reading the code and doing a little more testing I'm not so sure.
Here hbaseClient.py looks to see if (now - 'processor_state:post_timestamp') > resubmitTimeDeltaThreshold, and if so then log "avoiding potential resubmit" and continue:
http://code.google.com/p/socorro/source/browse/trunk/socorro/storage/hbaseClient.py#672
From my testing, row['processor_state:post_timestamp'] will always throw a KeyError and this will be handled and processing goes on:
http://code.google.com/p/socorro/source/browse/trunk/socorro/storage/hbaseClient.py#680
However, that means "now" does not get assigned:
http://code.google.com/p/socorro/source/browse/trunk/socorro/storage/hbaseClient.py#674
And an exception will be raised here, with a log message of "something has gone wrong in the submission for (...)":
http://code.google.com/p/socorro/source/browse/trunk/socorro/storage/hbaseClient.py#724
The crash will be processed, but processor_state:post_timestamp will not be updated.
| Assignee | ||
Comment 1•15 years ago
|
||
Assignee: nobody → robert
Status: NEW → UNCONFIRMED
Ever confirmed: false
Attachment #483016 -
Flags: review?(lars)
Comment 2•15 years ago
|
||
Comment on attachment 483016 [details] [diff] [review]
move "now" assignment out of try block
this is the correct solution.
Attachment #483016 -
Flags: review?(lars) → review+
| Assignee | ||
Comment 3•15 years ago
|
||
Committed revision 2593.
Thanks Lars!
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
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
•