Closed Bug 965587 Opened 10 years ago Closed 10 years ago

Prevent client from inadvertently submitting two records at the same time

Categories

(Firefox Health Report Graveyard :: Client: Desktop, defect)

defect
Not set
normal

Tracking

(firefox28 fixed, firefox29 fixed, b2g-v1.3 fixed)

RESOLVED FIXED
Firefox 29
Tracking Status
firefox28 --- fixed
firefox29 --- fixed
b2g-v1.3 --- fixed

People

(Reporter: rnewman, Assigned: gps)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

We've seen behaviors like this:

---
 A = 1d0af
 B = 708235
 C = 4801
 1. PUT A, DELETE B,C
 2. PUT C, DELETE B,A

The second is

 A = 480ee
 B = f587
 C = 73e6
 1. PUT A, DELETE B,C
 2. PUT C, DELETE B,A
---

This can only be explained by a timer firing twice on a client, such that it tries to do two uploads at the same time.

The trivial solution for this is to not allow the client to make two requests at the same time.
Attached file Add upload lock
rnewman granted review in RB.
Attachment #8367965 - Flags: review+
I'm going to tentatively flag this for tracking 28, as it has the potential to reduce orphaned record production in the release channel 6 weeks sooner and is a relatively simple patch.

We should wait on some numbers from Nightly and Aurora to assess the impact of this patch before landing.
https://hg.mozilla.org/mozilla-central/rev/bb793d3d2bad
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Not blocking release, but if you want to nominate a low-risk uplift to an early FF28 beta please go ahead.
Flags: needinfo?(gps)
Comment on attachment 8367965 [details]
Add upload lock

[Approval Request Comment]
Bug caused by (feature/regressing bug #): Firefox Health Report
User impact if declined: Possibly making server orphans worse
Testing completed (on m-c, etc.): Tests with patch. Still waiting on confirmation from Metrics
Risk to taking this patch (and alternatives if risky): It's touching the FHR code upload path. Worst case is it screws up upload. Chance of that happening should be low.
String or IDL/UUID changes made by this patch: None

This is a small patch and should have no adverse impact. If we didn't have the ability to measure the impact of this patch via FHR record submissions, I'd say uplift with few questions asked. But we do have the ability to measure it. I'm requesting approval now on the condition that Metrics says this doesn't appear to negatively impact FHR uploads on Nightly and/or Aurora channels.
Attachment #8367965 - Flags: approval-mozilla-beta?
Flags: needinfo?(gps)
Comment on attachment 8367965 [details]
Add upload lock

Alright then, let's get this in early and capture that data.
Attachment #8367965 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
jjensen: Can you assign someone to look at the FHR submission counts for Beta 28 starting in a week or so? We'd like to verify submission counts don't fall off a cliff before this patch rides to Release.
Flags: needinfo?(jjensen)
Why was this uplifted to b2g28? FHR isn't active there. No harm, no foul. Just curious.
Flags: needinfo?(jjensen)
Assuming verification my Metrics that this is working correctly is verification enough. Please let me know if QA is needed here.
Whiteboard: [qa-]
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: