Closed Bug 809930 Opened 12 years ago Closed 12 years ago

Make provider collection API more resilient to failures

Categories

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

defect
Not set
normal

Tracking

(firefox18 fixed, firefox19 fixed, firefox20 fixed)

RESOLVED FIXED
Firefox 20
Tracking Status
firefox18 --- fixed
firefox19 --- fixed
firefox20 --- fixed

People

(Reporter: gps, Assigned: gps)

References

Details

Attachments

(1 file)

Per discussion in bug 809644 we would like to make the collection API more resilient to failures. This tracks that. I think the patch is pretty straight forward. The only thing I anticipate push back on is having a way to extract the failed providers from the collector. We may want to introduce more properties on the collector hold per-provider errors, etc.
Attachment #679726 - Flags: review?(rnewman)
Comment on attachment 679726 [details] [diff] [review] More resilient error handling, v1 Review of attachment 679726 [details] [diff] [review]: ----------------------------------------------------------------- ::: services/metrics/collector.jsm @@ +81,5 @@ > + } catch (ex) { > + this._log.warn("Exception when calling " + name + > + ".collectConstantMeasurements: " + > + CommonUtils.exceptionStr(ex)); > + this.errors.push(ex); How about having an errors map from name to errors? That would solve our desire to track which providers failed… Happy to leave exploration of that for a follow-up.
Attachment #679726 - Flags: review?(rnewman) → review+
Assignee: nobody → gps
Status: NEW → ASSIGNED
Whiteboard: [fixed-in-larch]
Comment on attachment 679726 [details] [diff] [review] More resilient error handling, v1 Bulk-setting approval flags for FHR landing for FxOS ADU ping (Bug 788894).
Attachment #679726 - Flags: approval-mozilla-beta?
Attachment #679726 - Flags: approval-mozilla-aurora?
Target Milestone: --- → mozilla20
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Comment on attachment 679726 [details] [diff] [review] More resilient error handling, v1 FHR for B2G ADU ping, won't be built/enabled for Mobile/Desktop.
Attachment #679726 - Flags: approval-mozilla-beta?
Attachment #679726 - Flags: approval-mozilla-beta+
Attachment #679726 - Flags: approval-mozilla-aurora?
Attachment #679726 - Flags: approval-mozilla-aurora+
Depends on: 815320
Component: Metrics and Firefox Health Report → Client: Desktop
Flags: in-testsuite+
Product: Mozilla Services → Firefox Health Report
Target Milestone: mozilla20 → Firefox 20
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: