Closed Bug 469862 Opened 16 years ago Closed 16 years ago

Save crash reports in pending if the server responds "discarded due to throttling"

Categories

(Toolkit :: Crash Reporting, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

(Keywords: fixed1.9.1)

Attachments

(2 files)

We want to discard 90% of crash report submissions on the server (at least for Windows users). The server can notify the client that the submission was throttled by returning a null crash ID. The client should then save the crash report in the pending/ directory so that the user can manually resubmit it from about:crashes (bug 378528).

We should save the last 10 throttled crashes, I think, and scrub the rest.
Blocks: 469863
NOTE: this patch will save the throttled reports, but won't ever clear old reports out of the pending directory. I'll do that in a different patch.
Attachment #353708 - Flags: review?(ted.mielczarek)
Comment on attachment 353708 [details] [diff] [review]
Detect server throttling, rev. 1

Nice and simple. :)
Attachment #353708 - Flags: review?(ted.mielczarek) → review+
Oh, I also think we should file a followup bug about possibly changing the text the user sees when this happens. Might be confusing if they see "submitted successfully" and then visit about:crashes to find out that it wasn't actually submitted.
This landed yesterday:
http://hg.mozilla.org/mozilla-central/rev/31dbaf4ca0c4
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attachment #353708 - Flags: approval1.9.1?
Attachment #353708 - Flags: approval1.9.1? → approval1.9.1+
a191=beltzner; please make sure to also get bug 378528 landed in order to round out the user experience here as per comment 1.

(In reply to comment #3)
> Oh, I also think we should file a followup bug about possibly changing the text
> the user sees when this happens. Might be confusing if they see "submitted
> successfully" and then visit about:crashes to find out that it wasn't actually
> submitted.

That'll have to miss 191 as we've missed string freeze, but sure. "Thanks for helping Mozilla" or something as a confirmation of completion would work well.
Per bug 469863, send a Throttleable=1 flag with the request
Attachment #355634 - Flags: review?(ted.mielczarek)
Comment on attachment 355634 [details] [diff] [review]
Send a throttling flag with the request, per bug 469863

bug 469863 comment 8 suggests that Lars would prefer "Resubmission=0". Either way it doesn't matter much, since the resubmit code is going to wind up being JavaScript anyway.
Attachment #355634 - Flags: review?(ted.mielczarek) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: