Closed Bug 604229 Opened 14 years ago Closed 14 years ago

current "potential resubmit" check prevents post_timestamp update

Categories

(Socorro :: General, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rhelmer, Assigned: rhelmer)

Details

Attachments

(1 file)

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: nobody → robert
Status: NEW → UNCONFIRMED
Ever confirmed: false
Attachment #483016 - Flags: review?(lars)
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+
Committed revision 2593.

Thanks Lars!
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
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: