Add more temporary logging to IndexedDBShutdownTimeout crash annotation
Categories
(Core :: Storage: IndexedDB, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
Details
Attachments
(2 files)
(deleted),
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details |
(deleted),
text/plain
|
chutten
:
data-review-
chutten
:
data-review+
|
Details |
Assignee | ||
Comment 1•6 years ago
|
||
Crash stats in bug 1541776 show that even though we fixed one of the problems that cause shutdown hangs, hangs still occur.
The good news is that it's only caused by gFactoryOps array being not empty.
I'd like to add more logging which would iterate over the array and collect persistence type, origin string and maybe also database name.
We need this info only for short period of time to get an idea what type of IDB databases is causing this.
So we would be able to focus on exact areas in the code.
Assignee | ||
Comment 2•6 years ago
|
||
Actually, I just found "gLiveDatabaseHashtable: 1" in this crash report:
https://crash-stats.mozilla.org/report/index/4c578083-db77-413a-967b-034010190406#tab-metadata
It doesn't occur very often.
Assignee | ||
Comment 3•6 years ago
|
||
Latest "IndexedDBShutdownTimeout" contains mostly "gFactoryOps: N", where N look lower.
It seems that bug 1538619 has helped, but there is a problem still.
Comment 4•6 years ago
|
||
The priority flag is not set for this bug.
:overholt, could you have a look please?
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Chris, you already reviewed this crash annotation in bug 1540668, but we want to temporarily expose more info in the crash annotation.
This is how the crash annotation looks now:
gFactoryOps: N
(N is a number)
We want to change that to something like:
gFactoryOps: N (default*http://aaa.aaaaaaa.aaa*BeginVersionChange, default*https://aaa.aaaaaaa.aaa:DDDD*SendingResults, ...)
http://aaa.aaaaaaa.aaa is a sanitized origin (e.g. for http://www.mozilla.org)
See bug 1536596 comment 6 for more details how we sanitize the origin string.
BeginVersionChange, SendingResults, etc. are just stringified states of an intenal C++ object.
The crash annotation is only visible to users with a special permission (I think it's the Personal Identifiable Information permission).
Do I need to fill out a new data review request ?
Comment 7•5 years ago
|
||
Yes, we need to fill out a new data review request as we're going to collect new data.
Assignee | ||
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
Assignee | ||
Comment 10•5 years ago
|
||
Ok, we can make this public (I checked with the reviewer of the patch).
Assignee | ||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
Assignee | ||
Comment 14•5 years ago
|
||
It seems we now have enough debugging info.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 15•5 years ago
|
||
Comment on attachment 9066340 [details]
Bug 1542478 - Add more temporary logging to IndexedDBShutdownTimeout crash annotation; r=asuth
Beta/Release Uplift Approval Request
- User impact if declined: We were able to reduce IndexedDB shutdown hangs thanks to additional debugging info added to crash annotations. However, there might be other types of shutdown hangs which appear only in beta/release so it would be helpful to have this debugging info on beta/release too.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch landed 2 weeks ago. There were no regressions or other problems related to this patch. The patch has data review and data is actually visible to crash-stat accounts with special permission only. Origin strings are sanitized, so it's not directly obvious what sites the user visited.
- String changes made/needed: None
Comment 16•5 years ago
|
||
Comment on attachment 9066340 [details]
Bug 1542478 - Add more temporary logging to IndexedDBShutdownTimeout crash annotation; r=asuth
Improves annotations for IndexedDB shutdown hang reports. Approved for 68.0b11.
Comment 17•5 years ago
|
||
bugherder uplift |
Assignee | ||
Updated•5 years ago
|
Description
•