Open Bug 1950564 Opened 23 days ago Updated 3 days ago

QM: Improve shutdown handling when incremental origin initialization is enabled

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

ASSIGNED

People

(Reporter: janv, Assigned: janv)

References

(Blocks 2 open bugs)

Details

Attachments

(8 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

When incremental origin initialization is enabled, shutdown handling in quota manager needs improvements to ensure a clean and reliable shutdown process. Currently, there may be cases where shutdown occurs while incremental origin initialization is still in progress, potentially leading to inconsistent states.

Depends on: 1929840
Blocks: 1942781
Depends on: 1951659
Depends on: 1951661
Keywords: leave-open
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/10870b20f6c6 QM: Add a new testing only notification for origin initialization; r=dom-storage-reviewers,jstutte
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50d047ac2a08 QM: Add a test for starting shutdown during all temporary origins initialization; r=dom-storage-reviewers,jstutte

Backed out for causing xpcshell failures in test_shutdownDuringAllTemporaryOriginsInitialization.js.

Flags: needinfo?(jan.varga)

The patch has been updated, will be re-landing soon.

Flags: needinfo?(jan.varga)
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/34c37186873b QM: Add a test for starting shutdown during all temporary origins initialization; r=dom-storage-reviewers,jstutte
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7991f261f7a5 QM: Add a shutdown check to QuotaManager::EnsureTemporaryGroupIsInitializedInternal; r=dom-storage-reviewers,jstutte
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fc5ff5a4798d QM: Add support for pausing QM IO thread after finishing group initialization; r=dom-storage-reviewers,jstutte
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/080b5b6edc6a QM: Add a new testing only notification for group initialization; r=dom-storage-reviewers,jstutte
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5d916e08a6db QM: Add a disabled secondary test for starting shutdown during all temporary origins initialization; r=dom-storage-reviewers,jstutte
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fafefd2f4979 QM: Add a shutdown check to QuotaManager::InitializeAllTemporaryOrigins; r=dom-storage-reviewers,jstutte
Keywords: leave-open

Will this mitigate some of bug 1588510 or do we still need that one ?

(In reply to Jens Stutte [:jstutte] from comment #24)

Will this mitigate some of bug 1588510 or do we still need that one ?

I don't think so.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: