Cache: Fix handling of directory locks invalidated during database initialization
Categories
(Core :: Storage: Cache API, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox133 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
Details
Attachments
(7 external files)
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
| Assignee | ||
Comment 4•2 years ago
|
||
| Assignee | ||
Comment 5•2 years ago
|
||
Cache implementation already handles directory locks invalidated during
database initialization, but test_slowDatabaseInitialization.js still hangs.
The issue is that Context::CancelAll currently just clears all pending actions
if the state is STATE_CONTEXT_INIT (the promise for caches.open is never
resolved or rejected). Instead of just clearing pending actions, the pending
actions need to be completed first when QuotaInitRunnable is done and only then
cleared.
| Assignee | ||
Comment 6•2 years ago
|
||
| Assignee | ||
Comment 7•2 years ago
|
||
Cache implementation already handles directory locks invalidated during
database initialization by canceling corresponding QuotaInitRunnable, this
patch adds an extra check for that to Context::OnQuotaInit.
Comment 9•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8e15948b2752
https://hg.mozilla.org/mozilla-central/rev/3af0f575503a
https://hg.mozilla.org/mozilla-central/rev/df1b764f6b36
https://hg.mozilla.org/mozilla-central/rev/3b2d051a6800
https://hg.mozilla.org/mozilla-central/rev/3b8a6c6adf65
https://hg.mozilla.org/mozilla-central/rev/96c1e2a9b5c4
https://hg.mozilla.org/mozilla-central/rev/6aa4ffc4e300
Description
•