Closed Bug 679310 Opened 13 years ago Closed 13 years ago

Inconsistent results-count for query for 'RtlpWorkerCallout'

Categories

(Socorro :: General, task)

task
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: rhelmer)

Details

Attachments

(3 files, 3 obsolete files)

Flags: in-testsuite?
Flags: in-litmus?
Assignee: nobody → rhelmer
Target Milestone: --- → 2.2
Attached patch put extra "OR" clause in an else (obsolete) — Splinter Review
With this patch, the counts match up to 430 on my dev instance. 

hard to see in UI, I dumped the SQL and did a count(*):
breakpad=> select count(*)
                   FROM   reports JOIN  product_versions ON reports.version = product_versions.release_version AND reports.product = product_versions.product_name LEFT OUTER JOIN  reports_duplicates ON reports.uuid = reports_duplicates.uuid WHERE  reports.signature = 'RtlpWorkerCallout' AND (reports.product = 'Firefox' AND product_versions.version_string = '6.0b5' AND reports.version = product_versions.release_version AND reports.release_channel ILIKE 'beta' AND product_versions.build_type = 'beta' AND EXISTS ( SELECT 1 FROM product_version_builds WHERE product_versions.product_version_id = product_version_builds.product_version_id AND build_numeric(reports.build) = product_version_builds.build_id )) AND reports.signature  LIKE '%RtlpWorkerCallout%' AND reports.date_processed BETWEEN CAST('08/16/2011 02:59:59' AS TIMESTAMP WITHOUT TIME ZONE) - CAST('1 weeks' AS INTERVAL) AND CAST('08/16/2011 02:59:59' AS TIMESTAMP WITHOUT TIME ZONE); count 
-------   
430
(1 row)
Status: NEW → ASSIGNED
Attachment #553422 - Flags: review?(chris.lonnen)
Attached patch put extra "OR" clause in an else (obsolete) — Splinter Review
Attachment #553422 - Attachment is obsolete: true
Attachment #553422 - Flags: review?(chris.lonnen)
Attachment #553424 - Flags: review?(chris.lonnen)
OK I've tested this with:
* topcrasher links (off by a little bit, expected)
* old search -> report clickthrough (count matches)
* new beta search -> report clickthrough (count matches)
* new release search -> report clickthrough (count matches)

Doing multi-version search should work too, but the query takes a _very_ long time on stagedb.
Attachment #553424 - Attachment is obsolete: true
Attachment #553424 - Flags: review?(chris.lonnen)
Attachment #553436 - Flags: review?(chris.lonnen)
Attachment #553436 - Attachment is obsolete: true
Attachment #553436 - Flags: review?(chris.lonnen)
Attachment #553437 - Flags: review?(chris.lonnen)
Comment on attachment 553437 [details] [diff] [review]
put extra "OR" clause in an else, get precedence right

Difficult to test because of the database situation, but the code looks good and the errors I encounter are from the db, not this patch.
Attachment #553437 - Flags: review?(chris.lonnen) → review+
Landed on trunk:
Committed revision 3461.

Landed on 2.2 branch:
Committed revision 3462.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
(In reply to Robert Helmer [:rhelmer] from comment #4)
> Doing multi-version search should work too, but the query takes a _very_
> long time on stagedb.

I take this last part back; I don't think this code has ever been right in this case. I'll file a followup bug specifically about this.
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: