Closed
Bug 1017778
Opened 11 years ago
Closed 10 years ago
Telemetry probe for home provider database errors
Categories
(Firefox for Android Graveyard :: Data Providers, defect)
Tracking
(firefox29 unaffected, firefox30 wontfix, firefox31 fixed, firefox32 fixed, fennec31+)
RESOLVED
FIXED
Firefox 32
Tracking | Status | |
---|---|---|
firefox29 | --- | unaffected |
firefox30 | --- | wontfix |
firefox31 | --- | fixed |
firefox32 | --- | fixed |
fennec | 31+ | --- |
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Margaret
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
We observed in Bug 1006947 that sometimes we catch and log home provider database errors, rather than crashing.
Rather than change that behavior (with naturally unknown consequences for home panel users -- maybe this happens a lot!), I suggest we add a telemetry probe.
This will allow us to gauge the success of a fix for Bug 1006947 without relying on a very low crash rate.
Assignee | ||
Updated•11 years ago
|
Summary: Telemetry probe for database errors → Telemetry probe for home provider database errors
Assignee | ||
Comment 1•11 years ago
|
||
Well, this builds... margaret, thoughts?
Assignee | ||
Updated•11 years ago
|
Attachment #8431059 -
Flags: feedback?(margaret.leibovic)
Comment 2•11 years ago
|
||
Comment on attachment 8431059 [details] [diff] [review]
Telemetry probe for home provider database errors.
Review of attachment 8431059 [details] [diff] [review]:
-----------------------------------------------------------------
Looks reasonable to me. Should we add something to indicate which SQLiteBridgeContentProvider implementation this actually stemmed from? E.g. HomeProvider vs. PasswordsProvider.
::: mobile/android/base/db/SQLiteBridgeContentProvider.java
@@ +399,5 @@
> }
>
> + private static String getHistogram(SQLiteBridgeException e, String op) {
> + if (ERROR_MESSAGE_DATABASE_IS_LOCKED.equals(e.getMessage())) {
> + return HISTOGRAM_SQLITEBRIDGE_PROVIDER_PREFIX + "LOCKED_" + op.toUpperCase();
I think it would be better to make these op strings constants, since they correspond to the histogram name. In fact, instead of making reportError take a string as the second parameter, it could just take the histogram constant we want to use.
Attachment #8431059 -
Flags: feedback?(margaret.leibovic) → feedback+
Assignee | ||
Comment 3•11 years ago
|
||
Thanks for the feedback!
> Looks reasonable to me. Should we add something to indicate which
> SQLiteBridgeContentProvider implementation this actually stemmed from? E.g.
> HomeProvider vs. PasswordsProvider.
I was thinking about that, but I wanted to avoid landing too many probes. We could (ab)use UI telemetry instead, or I can see if telemetry has better constructs...
> I think it would be better to make these op strings constants, since they
> correspond to the histogram name. In fact, instead of making reportError
> take a string as the second parameter, it could just take the histogram
> constant we want to use.
I wanted to avoid the code reporting the error having to determine what kind of exception this was (e.g., this was an insert, and it's a DB locked exception, so I want SQLITEBRIDGE_PROVIDER_LOCKED_INSERT).
I'll try to figure out a neater way to slice this.
Assignee | ||
Comment 4•11 years ago
|
||
Switched to using an enumerated histogram, one per provider. Much neater.
Assignee | ||
Updated•11 years ago
|
Attachment #8431059 -
Attachment is obsolete: true
Assignee | ||
Comment 5•11 years ago
|
||
Tested by recording fake exceptions; added to telemetry successfully. Let me know if you want me to try to figure out an automated test for this.
mfinkle, feel free to steal this one.
Attachment #8432034 -
Flags: review?(margaret.leibovic)
Assignee | ||
Updated•11 years ago
|
Attachment #8432018 -
Attachment is obsolete: true
Assignee | ||
Comment 6•11 years ago
|
||
I'd like to fling this into Aurora ASAP, so we can catch a few days of data to validate our fix in Bug 1006947, which hit fx-team today.
I'd love to get it into Beta, but I'm pretty sure that's out of the question with a week to go.
tracking-fennec: --- → ?
Comment 7•10 years ago
|
||
Comment on attachment 8432034 [details] [diff] [review]
Telemetry probe for home provider database errors. v3
Review of attachment 8432034 [details] [diff] [review]:
-----------------------------------------------------------------
I think this version is better, thanks.
Attachment #8432034 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Comment 8•10 years ago
|
||
Thanks, Margaret!
https://hg.mozilla.org/integration/fx-team/rev/0b5b627caf3a
needinfo on me to assess for uplift.
Flags: needinfo?(rnewman)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 32
Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8432034 [details] [diff] [review]
Telemetry probe for home provider database errors. v3
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
None; telemetry probe addition to evaluate a fix.
User impact if declined:
We won't know if we fixed an error. We'd like to uplift this a little in advance so that we can get before/after evaluation.
Testing completed (on m-c, etc.):
Baked. Tested locally with artificial failures.
Risk to taking this patch (and alternatives if risky):
Slim. Just adds and uses new telemetry histograms.
String or IDL/UUID changes made by this patch:
None.
Attachment #8432034 -
Flags: approval-mozilla-aurora?
Flags: needinfo?(rnewman)
Updated•10 years ago
|
Attachment #8432034 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 11•10 years ago
|
||
tracking-fennec: ? → 31+
status-firefox29:
--- → unaffected
status-firefox30:
--- → wontfix
status-firefox31:
--- → fixed
status-firefox32:
--- → fixed
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•